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: Leaderstats

Previous Thread :: Next Thread 
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
24 Jul 2013 04:19 AM
Do you have to use an IntValue now?
Report Abuse
talk2me2 is not online. talk2me2
Joined: 25 Mar 2011
Total Posts: 1051
24 Jul 2013 04:22 AM
Yes.

function onPlayerEntered(player)
local stats = Instance.new("IntValue", player) --player sets the parent.
local time = Instance.new("IntValue", stats) --stats it time's parent
end

game.Players.ChildAdded:connect(onPlayerEntered)

etc etc.
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
24 Jul 2013 04:28 AM
No, you don't.
Report Abuse
Iterations is not online. Iterations
Joined: 22 Jul 2013
Total Posts: 751
24 Jul 2013 04:37 AM
So you can still use a model?
Report Abuse
xXxMoNkEyMaNxXx is not online. xXxMoNkEyMaNxXx
Joined: 03 Oct 2008
Total Posts: 3120
24 Jul 2013 04:39 AM
To contain the stat objects, I think you can use anything, though I have only seen a model and IntValue be used. (Why not?)
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
24 Jul 2013 04:44 AM
You can use model or any value.
Example:

Instance.new("Model", Player).Name = "leaderstats"
will work just as
Instance.new("IntValue", Player).Name = "leaderstats"
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