-- Basic settings

local ROTATION_SPEED = 0.1
local tweenService = game:GetService("TweenService")

while true do
	
	-- Wait
	local waitTime = wait()
	
	-- Tween to rotate
	local goal = {
		CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, ROTATION_SPEED, 0)
	}
	tweenService:Create(script.Parent, TweenInfo.new(waitTime, Enum.EasingStyle.Linear, Enum.EasingDirection.Out), goal):Play()
	
end
