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

Lua C? How to teleport all users in one game to another?

How to teleport all users in one game to another in lua c. Someone help

1 comment

0

stop exploiting roblox doesn't use LUA C

1 answer

To teleport all players in one game to another, use these lines of code:

gameid = 1234 -- Change this to the game ID that you want players to teleport to
for _,p in pairs(game.Players:GetChildren()) do
    game.TeleportService:Teleport(gameid, p.Character)
end

To teleport a single player, use these three lines of code:

gameid = 1234 -- Change this to the game ID you want to teleport to
player = game.Players.TP -- Change TP to the name of the player you want to teleport
game.TeleportService:Teleport(gameid, player.Character)

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