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

How do I make a gui tween when player added?

Asked by 6 years ago

I've made a script that when a player joins, a gui will go to that location using tweening. However, my script is broken. Do you see something broken in my script? It does not work.

game.Players.PlayerAdded:connect(function()
    gui:TweenPosition(UDim2.new(0.5, -200,0.5, -200), 1, 6, .5)
end)
0
gui isnt defined , maybe "6", use :Connect GingeyLol 338 — 6y
0
Check the output, and see if there are any errors. Like Gingey said though, gui isn't defined. Also, "6" is a thing. An EasingStyle. It's Quint tween, 1 is Linear tween. You should also add "false: after .5 because it won't interfere with other tweens. JellyYn 70 — 6y
0
I would refer to another identical question: https://scriptinghelpers.org/questions/41793/why-does-my-animation-goes-out-of-the-screen-more-you-click-the-button#43563 Your issue is that you're using an integer where you aren't supposed to (in the easing styles). Troidit 253 — 6y

Answer this question