TweenPosition local script won't work

I reviewed the script and nothing was wrong, can anyone help :thinking:

1 Like

Parent the TextButton to the script.

2 Likes

I made the button the parent of the local script now and made it script.Parent for line 2. But it still won’t work :confused:

1 Like

Try to add this after local t
and also, ur TextButton.Parent is ScreenGui but not Local Script

1.AnchorPoint = Vector2.new(0.5, 0.5)
1.Position = UDim2.new(0.1, 0, 0.5, 0)
1.Position = UDim2.new(0, -object.Size.X.Offset, 0.5, 0)
3 Likes

Or you can use this instead local t

local t = script.Parent.TextButton

Still won’t work :confused: and I tried your second message. But it still won’t

1 Like

I have added one line back, try again.

It worked now! Thanks for the help, I am very grateful.

1 Like