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

Why do I get the error Teleport Failed: Cannot find game server?

This is the code for the button in a GUI that should teleport the player to another place when clicked:

script.Parent.MouseButton1Click:connect(function()
    game:GetService("TeleportService"):Teleport(24510429789)
end)

However when I click the button it says Teleport Failed: Cannot find game server. The ID I put in is definitely correct.

2 comments

0

must be linked to your game in game settings

0

It is, I've managed to teleport to the place before trying to use it in a GUI when I just did it when the player touched a part.

1 answer

script.Parent.MouseButton1Click:connect(function()
    Player = game.Players.LocalPlayer
    game:GetService("TeleportService"):Teleport(“24510429789”,Player)
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.