Okay so, I need help with this script. I'm trying to figure out whether there's a problem my Tween, I'm very confused. Here, take a look at it:
local playbutton = script.Parent function OnButtonClick() playbutton.MouseButton1Click:Connect(OnButtonClick) playbutton:TweenPosition(UDim2(5,0,0,0) "InOut", "Cubic", 1) end
I don't know what I did wrong. Thank you for your time.
local playbutton = script.Parent function OnButtonClick() playbutton:TweenPosition(UDim2.new(5,0,0,0) "InOut", "Cubic", 1) end playbutton.MouseButton1Click:Connect(OnButtonClick)
Line 4: playbutton:TweenPosition(UDim2.new(5,0,0,0),"InOut","Cubic",1) - You forgot the new in the UDim2. UDim2.new().
Line 3: Take it out of the function, and put it after the end, so it's under everything.
Hope this helped! If this worked for you, let me know by selecting this as the answer!