01 | Wait( 1 ) local System = script.Parent local Playing = System:FindFirstChild( 'Playing' ) local Stage = System:FindFirstChild( 'Stage' ) local Weapon = Game.Lighting:FindFirstChild( 'Pistol' ) local Humans = Game.Teams:FindFirstChild( 'Humans' ) local Zombies = Game.Teams:FindFirstChild( 'Zombies' ) local Message = nil local Hint = nil local vPlaying = false local Interrupted = false local Minutes = 0 local Seconds = 0 |
02 |
03 | local DisplayHint = ( function (GameText) if not (Hint) then Hint = Instance.new( 'Hint' ) Hint.Text = GameText Hint.Parent = Game.Workspace else Hint.Text = GameText end end ) |
04 |
05 | local RemoveHint = ( function () if (Hint) then Hint:remove() Hint = nil end end ) |
06 |
07 | local DisplayMessage = ( function (GameText) if not (Message) then Message = Instance.new( 'Message' ) Message.Text = GameText Message.Parent = Game.Workspace else Message.Text = GameText end end ) |
08 |
09 | local RemoveMessage = ( function () if (Message) then Message:remove() Message = nil end end ) |
10 |
11 | local GiveWeapon = ( function () local Player = Game.Players:GetPlayers() if (#Player > 0 ) then for p = 1 ,#Player do if (Player [ p ] .TeamColor = = Humans.TeamColor) then Weapon:Clone().Parent = Player [ p ] .Backpack end end end end ) |
12 |
13 | local KillPlayers = ( function () local Player = Game.Players:GetPlayers() if (#Player > 0 ) then for p = 1 ,#Player do if (Player [ p ] .Character) then local Humanoid = Player [ p ] .Character:FindFirstChild( 'Humanoid' ) if (Humanoid.Health > 0 ) then Player [ p ] .Character.Humanoid.Health = 0 else if (Player [ p ] :FindFirstChild( 'Dead' )) then Player [ p ] [ 'Dead' ] .Value = false Player [ p ] [ 'Class' ] .Value = 'Zombie' Player [ p ] .TeamColor = Humans.TeamColor end end end end end end ) |
14 |
15 | local ResetPlayers = ( function () local Player = Game.Players:GetPlayers() if (#Player > 0 ) then for p = 1 ,#Player do if (Player [ p ] :FindFirstChild( 'Dead' )) then Player [ p ] [ 'Dead' ] .Value = false Player [ p ] [ 'Class' ] .Value = 'Zombie' Player [ p ] .TeamColor = Humans.TeamColor end end end end ) |
This question has been closed because it is too broad and is generally unanswerable. Please ask a more specific question.
Why was this question closed?