I would like it so that someone click's a start GUI in a main menu place and it loads then gives a hint that says loading then teleports them to the actual place but that doesn't seem to be working. The problem seems to be the script, the GUI is a textbutton. (BTW Im a beginner at scripting)
script.Parent.MouseButton1Click:connect(function()
local TeleportService = game:GetService("TeleportService")
local GameId = 880862623
local hint = Instance.new('Hint', workspace)
hint.Text = "Loading... Please allow up to 20 seconds :)"
wait(20)
hint:Destroy()
game.Players.PlayerAdded:connect(function(player)
TeleportService:Teleport(GameId, player)
end)
end)

3 comments
Is it a LocalScript? Make sure it is. And remove the playerAdded function, there is no need for that.
Remove the playerAdded function. Put it in a local script and I believe you need to get your moveTo function in there or else the script is not knowing where to place the player.
THANK YOU SO MUCH!!