local Y=script.Parent:WaitForChild("\066\097\115\101")local C=Y.CFrame local O=os.clock()local J=math.pi*2 local n=90 local D=19 local e=0 local p=6 while Y and Y.Parent do wait()local i=os.clock()-O Y.CFrame=C*CFrame.Angles(0,(math.sin((i*J)/p)*math.rad(e))*.5,(math.sin((i*J)/D)*math.rad(n))*.5)end


local base = script.Parent:WaitForChild('Base')

local startCF = base.CFrame
local startTime = os.clock()
local tau = math.pi*2


local VERTICAL_SWING_AMOUNT = 90
local VERTICAL_SWING_TIME = 19

local HORIZONTAL_SWING_AMOUNT = 0
local HORIZONTAL_SWING_TIME = 6

while base and base.Parent do
	wait()
	local d = os.clock() - startTime
	base.CFrame = startCF * CFrame.Angles(0, math.sin(d*tau/HORIZONTAL_SWING_TIME)*math.rad(HORIZONTAL_SWING_AMOUNT)*.5, math.sin(d*tau/VERTICAL_SWING_TIME)*math.rad(VERTICAL_SWING_AMOUNT)*.5)
end
