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: Inserting Values into a Player

Previous Thread :: Next Thread 
NeonBlox is not online. NeonBlox
Joined: 19 Oct 2008
Total Posts: 1462
04 Nov 2011 02:12 PM
How would I insert a int value into a play once they join the game.
Report Abuse
2WOOF2 is not online. 2WOOF2
Joined: 07 Aug 2009
Total Posts: 3444
04 Nov 2011 02:13 PM
game.Players.PlayerAdded:connect(function(plyr)
Instance.new("IntValue",plyr)
end)

¤שׂøøŦ¤ The Rich Zombie ¤
Report Abuse
NeonBlox is not online. NeonBlox
Joined: 19 Oct 2008
Total Posts: 1462
04 Nov 2011 02:15 PM
Okay, thanks. How would I change the name on the IntValue, since I will be inserting many they all can't be called IntValue. I'd like it to be called points.
Report Abuse
2WOOF2 is not online. 2WOOF2
Joined: 07 Aug 2009
Total Posts: 3444
04 Nov 2011 02:16 PM
game.Players.PlayerAdded:connect(function(plyr)
points = Instance.new("IntValue",plyr)
points.Name = "points"
end)

¤שׂøøŦ¤ The Rich Zombie ¤
Report Abuse
NeonBlox is not online. NeonBlox
Joined: 19 Oct 2008
Total Posts: 1462
04 Nov 2011 02:19 PM
Okay, now would this edit the value?

game.Players.people[1].points = points + 20

By the way, all active players are in a table called people.
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