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

Don't Judge me its my first time using Tweening but how can i fix this?

Asked by 5 years ago

20:33:19.872 - Workspace.Lets Tween about that.Script:6: Expected ')' (to close '(' at line 2), got 'Enum'

local Part = script.Parent
local TweeningInfo = TweenInfo.new(

5,
Enum.EasingStyle.Bounce
Enum.EasingDirection.Out
10,
true,
2
)

local PartProperties = {
    Size = Vector3.new(50,50,50)
    Color = Color3.fromRGB(120,50,65)


}
local Tween = Tweenservice:Create(Part,TweeningInfo,PartProperties)
Tween:Play

I watched an alvinblox video to get a Jist of it

1
Link the tutorial RBLXNogin 187 — 5y

1 answer

Log in to vote
0
Answered by
Hypgnosis 186
5 years ago
Edited 5 years ago

Look at your error. See the number 6? That means that there is an error on line 6 or near it. We can see above line 6, there is no comma after the easing style. There needs to be a comma after every value in the tween info, excepting the last one.

Also, Tween:Play will error as well. It should be written as Tween:Play(). Notice the parentheses.

Below is code corrected for all errors:

local Part = script.Parent
local Tweenservice = game:GetService('TweenService')

local TweeningInfo = TweenInfo.new(
5,
Enum.EasingStyle.Bounce,
Enum.EasingDirection.Out,
10,
true,
2
)

local PartProperties = {
    Size = Vector3.new(50,50,50),
    Color = Color3.fromRGB(120,50,65)
}

local Tween = Tweenservice:Create(Part,TweeningInfo,PartProperties)
Tween:Play()
0
I got this idk y 17:28:00.403 - Workspace.Part.Script:13: Expected '}' (to close '{' at line 11), got 'Color' Vortex_Vasne 89 — 5y
0
Nvm i fixed i had to put the } on the same line as Color but i get this 17:44:00.350 - Workspace.Part.Script:16: attempt to index global 'Tweenservice' (a nil value) Vortex_Vasne 89 — 5y
0
Sorry, I edited it now. copy it again and try Hypgnosis 186 — 5y
Ad

Answer this question