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 » Scripters
Home Search
 

Re: help!

Previous Thread :: Next Thread 
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
08 Mar 2016 09:09 PM
For some reason, poop always seems to be true, even if the player doesn't have the "pyro value" in their playergui. Does anyone know why? Help!


for index, player in pairs(activecontestants) do
if player.Character and player.Character:FindFirstChild("Humanoid") then
game.Players.PlayerRemoving:connect(function()
for index2, player2 in pairs(activecontestants) do
if player2 == player then
table.remove(activecontestants, index2)
if player2.PlayerGui:FindFirstChild("PyroValue") then
poop = true
end
end
end
end)
end
end
Report Abuse
LuaLlama is not online. LuaLlama
Joined: 25 Jan 2014
Total Posts: 1123
08 Mar 2016 09:18 PM
try setting poop to false when you initialize.
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
08 Mar 2016 09:19 PM
yes, poop is earlier set to false
Report Abuse
LuaLlama is not online. LuaLlama
Joined: 25 Jan 2014
Total Posts: 1123
08 Mar 2016 09:20 PM
try setting it every time the loop restarts
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
08 Mar 2016 09:35 PM
this didn't seem to help...
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
08 Mar 2016 09:49 PM
please help...
Report Abuse
Fatul is not online. Fatul
Joined: 28 Sep 2008
Total Posts: 254
08 Mar 2016 11:21 PM
Try to see if you have any other script that may mess with 'poop'
Report Abuse
swimmaster07 is not online. swimmaster07
Joined: 08 Jun 2013
Total Posts: 1459
09 Mar 2016 08:08 PM
I realized my script made like no sence (lol) and i changed it to this and now it works yay!!!!!!

game.Players.PlayerRemoving:connect(function(player)
for i,v in pairs (activecontestants) do
if v.Name == player.Name then
table.remove(activecontestants, i)
if player.PlayerGui:FindFirstChild("PyroValue") then
print("Found value")
poop = true
end
end
end
end)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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