Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Main script (goes in ServerScriptService)
- local maps = game.Lighting.Maps:GetChildren() --a variable for the maps
- while true do -- a loop
- wait()
- chosenmap = maps[math.random(1,#maps)] -- gets a random map between the three
- chosenmap:Clone().Parent = workspace -- sets the parent to workspace
- for i,v in pairs(game.Players:GetChildren())do
- if v.Character then
- v.Character.Torso.CFrame = workspace:FindFirstChild(chosenmap.Name).Spawn.CFrame
- wait(3) -- time of the round
- workspace:FindFirstChild(chosenmap.Name):Destroy() -- destroys the map after round has ended
- end
- end
- end
- -- There will be no intermission for this tutorial, part 2 will have one
- (Make sure your maps are in a folder named 'Maps' and in Lighting,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement