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.

3 comments
Line 4: playbutton:TweenPosition(UDim2.new(5,0,0,0),"InOut","Cubic",1) - You forgot the new in the UDim2. UDim2.new().
And take line 3 out of the function, and put it after the end, so it's under everything.
Okay, thanks.