Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How i make an TextButton that when player click get teleported to another game?

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

1 comment

0

I'm pretty sure that the TeleportService does not work on the client. Use a RemoteEvent.

1 answer

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.