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
 

Help

Previous Thread :: Next Thread 
ChaosImperator is not online. ChaosImperator
Joined: 13 May 2011
Total Posts: 1847
23 Sep 2014 03:06 PM
game.Players:FindFirstChild("Player")
if Player ~= nil then
Player.Value = 1
end



I have a value located in all the players, and when they buy something I want the value to go up. How do I do this? I gave you an example up there of how I did it.
Report Abuse
Scripbuilder900 is not online. Scripbuilder900
Joined: 04 Aug 2011
Total Posts: 183
23 Sep 2014 03:10 PM
Player.Value.Value = 1 <-- Would set it. So... Let's call the value Points. And let's assume they just purchased whatever the item was.

player = game.Players:FindFirstChild("Player")
if player then
player.Points.Value = player.Points.Value + 1
end
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