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

How i teleport all players to multiple models (named tp)?

game.Players.LocalPlayer.Character.Torso:MoveTo(game.Workspace.MapStorage.Model.tp

and they dont tp computer says:

ServerScriptService.GameSelect:20:attempt to index nil with character.

2 answers

✓ Accepted answer

Do

game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Workspace.MapStorage.Model.tp.CFrame

instead, if you R15 or

game.Players.LocalPlayer.Character.Torso.CFrame = game.Workspace.MapStorage.Model.tp.CFrame

if you use R6

1 comment

0

Thanks !

You can't get the local player on the server, you have to use PlayerAdded

game.Players.PlayerAdded:Connect(function(plr)

end)

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