generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Help it gets stuck at

Previous Thread :: Next Thread 
UnConcentrated is not online. UnConcentrated
Joined: 27 Jun 2014
Total Posts: 33
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 is not online. 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
UnConcentrated is not online. UnConcentrated
Joined: 27 Jun 2014
Total Posts: 33
28 Jun 2014 07:56 PM
Where would I put that Scr
Report Abuse
UnConcentrated is not online. UnConcentrated
Joined: 27 Jun 2014
Total Posts: 33
28 Jun 2014 08:00 PM
You can never get help on here
Report Abuse
luigi01302 is not online. luigi01302
Joined: 12 Jul 2009
Total Posts: 511
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
UnConcentrated is not online. UnConcentrated
Joined: 27 Jun 2014
Total Posts: 33
28 Jun 2014 08:18 PM
I am no longer on computer I'm on ipad I cannot provide output
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image