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: Leaderboard and strings

Previous Thread :: Next Thread 
sk8t3r230 is online. sk8t3r230
Joined: 13 Jun 2011
Total Posts: 8649
17 Feb 2014 02:08 PM
I'm currently trying to make a value of "Area" be a string but it keeps giving me 0...

local Area = Instance.new("IntValue", leaderstats)
Area.Name = "Area"
Area.Value = "Spawn Area"
Report Abuse
subenari is not online. subenari
Joined: 23 Mar 2011
Total Posts: 116
17 Feb 2014 02:09 PM
tonumber(string)
Report Abuse
sk8t3r230 is online. sk8t3r230
Joined: 13 Jun 2011
Total Posts: 8649
17 Feb 2014 02:11 PM
?
Report Abuse
DataStore is not online. DataStore
Joined: 07 Feb 2012
Total Posts: 8540
17 Feb 2014 02:12 PM
local Area = Instance.new("StringValue", leaderstats)

An IntValue is used to hold an integer, not a string.
Report Abuse
sk8t3r230 is online. sk8t3r230
Joined: 13 Jun 2011
Total Posts: 8649
17 Feb 2014 02:13 PM
Thanks!
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