I'm trying to make a button that when player click it, get teleported to another server here's the script:
script.Parent.MouseButton1Click:connect(function()
game:GetService("TeleportService"):Teleport("EnterGameIDHere")
end)
It not worked
I'm trying to make a button that when player click it, get teleported to another server here's the script:
script.Parent.MouseButton1Click:connect(function()
game:GetService("TeleportService"):Teleport("EnterGameIDHere")
end)
It not worked
This question is very non-descriptive, the script you posted has to be in a LocalScript parented to the TextButton, you also obviously have to change the game ID, teleportation is also pretty slow and can take up to 15 seconds to work properly, I also doubt this would work in studio's test mode for obvious reasons, do some print debugging and test it in actual game.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
I'm pretty sure that the TeleportService does not work on the client. Use a RemoteEvent.