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)

3 comments
gui isnt defined , maybe "6", use :Connect
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.
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).