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

How do you make a map genorater than teleporter?

Asked by 10 years ago

How do you make a map pop up at a time than make a robloxians teleport to it at a time limit?

1 answer

Log in to vote
0
Answered by
Dummiez 360 Moderation Voter
10 years ago

Something like this (you would need a map in the ServerStorage).

-- A section of the code:

local map1 = game.ServerStorage["Forest Map"] :Clone()-- or whatever map name.
map1.Parent = Workspace
repeat wait() until Workspace:findFirstChild(map1.Name)
local target = CFrame.new(0, 5, 0) -- Change this to the same position as where the map is. (preferably the base) 

for i, player in ipairs(game.Players:GetChildren()) do
    player.Character.Torso.CFrame = target + Vector3.new(0, i * 5, 0)
end
Ad

Answer this question