local donut = script.Parent

local twenservice = game:GetService("TweenService")

local tweninfo = TweenInfo.new(
	2,
	Enum.EasingStyle.Sine,
	Enum.EasingDirection.Out,
	9999999999999999,
	true,
	0
)


local goals =
	{
	CFrame = CFrame * CFrame.Angles(0, math.rad(-90), 0)
}

local twenyes = twenservice:Create(donut, tweninfo, goals)

wait(1)
twenyes:Play()

5 comments

0

error:Workspace.dONUT.Script:17: invalid argument #1 (CFrame expected, got table)

0

you forgot to add donut, CFrame = donut.CFrame * CFrame.Angles(0, math.rad(-90), 0)

0

Thank u it works

0

Use -1 to represent indefinite repetition.

0

maybe u should close it or answer