How to teleport all users in one game to another in lua c. Someone help
COMMUNITY QUESTION
Lua C? How to teleport all users in one game to another?
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.

1 comment
stop exploiting roblox doesn't use LUA C