|
| 28 Jun 2014 07:16 PM |
There is currently a game in progress! Please wait until the next round.
How do I fix this?
-- Intermission -- function onJoined(newPlayer) gui = script.HintGui:Clone() gui.Parent = newPlayer.PlayerGui gui.Frame1.TextBox.Text = "There is currently a game in progress! Please wait until the next round." end game.Players.PlayerAdded:connect(onJoined) -- End of Intermission --
-- Kill Everyone when Round Ends -- if script.HasEnded.Value == true then for i, player in ipairs(game.Players:GetPlayers()) do if player.Character then local player1 = player.Character:FindFirstChild('Humanoid') if player1 then player1:TakeDamage(100) end end end -- End of Killing when Round Ends --
-- Change teams on death -- wait(1) player = script.Parent.Parent.Parent char = player.Character humanoid = char:findFirstChild("Humanoid") team1 = game.Teams["Players"] ---Put the team the player will start in. team2 = game.Teams["Eliminated"] ---Put the team the player while end up when dead team3 = game.Teams["Moderators"] function ChangeTeamOnDeath() if player.TeamColor == team1.TeamColor or player.TeamColor == team3.TeamColor then player.TeamColor = team2.TeamColor elseif player.TeamColor == team2.TeamColor then end end end humanoid.Died:connect(ChangeTeamOnDeath) -- End of Change teams on death --
|
|
|
| Report Abuse |
|
|
Sprinted
|
  |
| Joined: 17 Apr 2013 |
| Total Posts: 89 |
|
|
| 28 Jun 2014 07:18 PM |
| i think you need to do newplayer:WaitForChild('PlayerGui') |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2014 07:56 PM |
| Where would I put that Scr |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2014 08:00 PM |
| You can never get help on here |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2014 08:11 PM |
| Have a look in the output. It's kinda hard to tell where an error is over 3 scripts. Does the error(s) pertain to one script or all of them. If so, place the one that has the error. |
|
|
| Report Abuse |
|
|
|
| 28 Jun 2014 08:18 PM |
| I am no longer on computer I'm on ipad I cannot provide output |
|
|
| Report Abuse |
|
|