Roblox Lua 出现错误 "TweenInfo.new 的第一个参数需要传递数字类型的时间",虽然我已经传递了数字

所以我正在测试一个想法,希望创建一个脚本,在调用函数并传递项目时进行缓动,但我一直收到以下错误提示"TweenInfo.new 的第一个参数需要传递数字类型的时间",即使我已经传递了数字。以下是我的代码(等待是为了在看到它之前不要消失):

等待(5)
本地TweenPartMove = functionPartTimeEasingStyleEasingDirectionTimesToRepeatIfReverseDelayPerTweenGoalsXCoordsGoalsYCoordsGoalsZCoordslocal TweeningInfo = TweenInfo.new{
        时间
        EasingStyleEasingDirectionTimesToRepeatIfReverseDelayPerTween
    }
    local TweenGoals = {
        CFrame = Part.CFrame + Vector3.new(GoalsXCoords, GoalsYCoords, GoalsZCoords)
    }
    TweenService:Create(Part,TweeningInfo,TweenGoals):Play()
end
TweenPartMove(script.Parent,3,Enum.EasingStyle.Bounce,Enum.EasingDirection.Out,0false05300
点赞