Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

I get a error when I run my game, it is coming from my tweening script, any know why?

Asked by 4 years ago
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()
0
error:Workspace.dONUT.Script:17: invalid argument #1 (CFrame expected, got table) ABCTrainerDude 12 — 4y
0
you forgot to add donut, CFrame = donut.CFrame * CFrame.Angles(0, math.rad(-90), 0) imKirda 4491 — 4y
0
Thank u it works ABCTrainerDude 12 — 4y
0
Use -1 to represent indefinite repetition. Ziffixture 6913 — 4y
0
maybe u should close it or answer andyc889 0 — 4y

Answer this question