Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make it so it tweens a GUI when the player enters?

here is what I did:

Players.PlayerAdded:Connect(function(plr)

plr:WaitForChild("PlayerGui"):WaitForChild("notif"):WaitForChild("question"):TweenPosition(UDim2.new(0.25, 0,0.25, 0),"In","Linear",1)

end)

However, it doesn't work. :(

I tried to do find first child and it also doesn't work.

1 comment

0

If your game is filtering enabled it will not work, you'll have to use remote functions instead w/ a local script.

1 answer

✓ Accepted answer

You can only alter guis while using local scripts.

If you entered something like this in a local script that is directly inside the gui you wish to tween, it should work:

script.Parent:TweenPosition(UDim2.new(0,0,0.25,0),"In","Linear",1)

This discussion is preserved as it was. New answers, comments, and votes are closed.