Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to teleport players to a map?

Asked by 10 years ago

i want to teleport players to a map like murder mystery i really need help.

1 answer

Log in to vote
0
Answered by
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
10 years ago
local point=Vector3.new()
for _,v in pairs(game.Players:GetPlayers())do
    if v.Character then
        v.Character:MoveTo(point+Vector3.new(math.random(-10,10),0,math.random(-10,10))
    end
end

Moves everyone's character to point offset by up to 10 studs in any horizontal direction.

0
so i just place this in workspace? and the map? joshuahegeman76 0 — 10y
Ad

Answer this question