Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local intermissiontime = 30 --The amount of time the intermission lasts
- local statustag = game:GetService("ReplicatedStorage"):WaitForChild("StatusTag")
- local timertag = game:GetService("ReplicatedStorage"):WaitForChild("TimerTag")
- local LocalPlayers = game:GetService("Players").LocalPlayer
- local Maps = game:GetService("Lighting"):WaitForChild("Maps"):GetChildren()
- local MapStorage = workspace.MapStorage
- local players = game:GetService("Players")
- local DeathScript = game:GetService("Lighting"):WaitForChild("DeathScript")
- function Choose()
- local DeathChoose = game.Players:GetChildren()
- for i=1, 1 do
- local DeathChosen = DeathChoose[math.random(1,#DeathChoose)]
- DeathChosen.Name = "Death"
- if DeathChosen.Character ~= nil and DeathChosen ~= nil then
- LocalPlayers.PlayerGui.DeathShow.ShowDeath.Text = "Death : "..DeathChosen.Name
- LocalPlayers.PlayerGui.DeathShow.ShowDeath.Visible = true
- end
- end
- end
- function Start()
- local ChosenMap = Maps[math.random(1,#Maps)]
- local map = ChosenMap:Clone()
- map.Parent = MapStorage
- local spawns = map:FindFirstChild("Spawns"):GetChildren()
- for i, v in pairs(players:GetChildren()) do
- if v.character then
- local char = v.character
- char:FindFirstChild("HumanoidRootPart").CFrame = spawns[i].CFrame + Vector3.new(0,10,0)
- end
- end
- local DeathScriptClone = DeathScript:Clone()
- DeathScriptClone.Parent = game.Players.Death.Character.Torso
- end
- while wait() do
- local Players = game.Players:GetPlayers()
- if #Players > 1 then
- LocalPlayers.PlayerGui.Intermission.Frame.StatusLabel.Visible = true
- LocalPlayers.PlayerGui.Intermission.TextLabel.Visible = false
- Choose()
- Start()
- for i = 1, 3000 do
- wait(0.01)
- end
- wait(2.5)
- LocalPlayers.PlayerGui.DeathShow.ShowDeath.Visible = false
- else
- LocalPlayers.PlayerGui.Intermission.Frame.StatusLabel.Visible = false
- LocalPlayers.PlayerGui.Intermission.TextLabel.Visible = true
- end
- end
Add Comment
Please, Sign In to add comment