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: Value does not change.

Previous Thread :: Next Thread 
WolfzBoii is not online. WolfzBoii
Joined: 29 Jul 2013
Total Posts: 135
14 Jun 2014 11:22 AM
(there are parts before this bit;)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function()
a.Value = "Dead"
game.Workspace.PlayersAlive.Value = Workspace.PlayersAlive.Value - 1 ( <-- This bit does not execute)
end)
end)
end)


Report Abuse
WolfzBoii is not online. WolfzBoii
Joined: 29 Jul 2013
Total Posts: 135
14 Jun 2014 11:23 AM
I was expecting the "PlayersAlive" Value to change after a player dies.
However it does not work.
Report Abuse
PerpetualMovement is not online. PerpetualMovement
Joined: 04 Dec 2012
Total Posts: 1001
14 Jun 2014 11:24 AM
You didn't define the variable "a". Since it doesn't exist, the script failed to execute the rest of the code.
Report Abuse
singleroblox is not online. singleroblox
Joined: 04 Apr 2012
Total Posts: 450
14 Jun 2014 11:25 AM
game.Workspace.PlayersAlive.Value = game.Workspace.PlayersAlive.Value - 1

try that.
Report Abuse
WolfzBoii is not online. WolfzBoii
Joined: 29 Jul 2013
Total Posts: 135
14 Jun 2014 12:07 PM
Thanks it worked! c:
Report Abuse
singleroblox is not online. singleroblox
Joined: 04 Apr 2012
Total Posts: 450
14 Jun 2014 02:18 PM
what one?
Report Abuse
WolfzBoii is not online. WolfzBoii
Joined: 29 Jul 2013
Total Posts: 135
16 Jun 2014 03:04 PM
Your one. Thanks c;
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