Upscalefanatic3

(Roblox) Script of Unknown Origin

Mar 14th, 2020
421
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local intermissiontime = 30 --The amount of time the intermission lasts
  2. local statustag = game:GetService("ReplicatedStorage"):WaitForChild("StatusTag")
  3. local timertag = game:GetService("ReplicatedStorage"):WaitForChild("TimerTag")
  4. local LocalPlayers = game:GetService("Players").LocalPlayer
  5. local Maps = game:GetService("Lighting"):WaitForChild("Maps"):GetChildren()
  6. local MapStorage = workspace.MapStorage
  7. local players = game:GetService("Players")
  8. local DeathScript = game:GetService("Lighting"):WaitForChild("DeathScript")
  9.  
  10. function Choose()
  11.     local DeathChoose = game.Players:GetChildren()
  12.     for i=1, 1 do
  13.         local DeathChosen = DeathChoose[math.random(1,#DeathChoose)]
  14.         DeathChosen.Name = "Death"
  15.         if DeathChosen.Character ~= nil and DeathChosen ~= nil then
  16.             LocalPlayers.PlayerGui.DeathShow.ShowDeath.Text = "Death : "..DeathChosen.Name
  17.             LocalPlayers.PlayerGui.DeathShow.ShowDeath.Visible = true
  18.         end
  19.     end
  20. end
  21.  
  22. function Start()
  23.     local ChosenMap = Maps[math.random(1,#Maps)]
  24.     local map = ChosenMap:Clone()
  25.     map.Parent = MapStorage
  26.     local spawns = map:FindFirstChild("Spawns"):GetChildren()
  27.    
  28.     for i, v in pairs(players:GetChildren()) do
  29.         if v.character then
  30.             local char = v.character
  31.             char:FindFirstChild("HumanoidRootPart").CFrame = spawns[i].CFrame + Vector3.new(0,10,0)
  32.         end
  33.     end
  34.     local DeathScriptClone = DeathScript:Clone()
  35.     DeathScriptClone.Parent = game.Players.Death.Character.Torso
  36. end
  37.  
  38.  
  39. while wait() do
  40.     local Players = game.Players:GetPlayers()
  41.     if #Players > 1 then
  42.         LocalPlayers.PlayerGui.Intermission.Frame.StatusLabel.Visible = true
  43.         LocalPlayers.PlayerGui.Intermission.TextLabel.Visible = false
  44.  
  45.         Choose()
  46.         Start()
  47.         for i = 1, 3000 do
  48.         wait(0.01)
  49.            
  50.         end
  51.         wait(2.5)
  52.         LocalPlayers.PlayerGui.DeathShow.ShowDeath.Visible = false
  53.     else
  54.         LocalPlayers.PlayerGui.Intermission.Frame.StatusLabel.Visible = false
  55.         LocalPlayers.PlayerGui.Intermission.TextLabel.Visible = true
  56.     end
  57. end
Add Comment
Please, Sign In to add comment