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

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

Asked by 6 years ago

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.

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

1 answer

Log in to vote
0
Answered by
mattscy 3725 Moderation Voter Community Moderator
6 years ago

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)
Ad

Answer this question