Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 4 days ago
Edited 4 days ago
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

Log in to vote
1
Answered by 3 days ago

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

0
Thanks ! Omerevkizel 31 — 3d
Ad
Log in to vote
0
Answered by 4 days ago

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

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

end)

Answer this question