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 » Scripters
Home Search
 

Re: Finding the biggest value of a DataStore?

Previous Thread :: Next Thread 
frriend is not online. frriend
Joined: 07 Feb 2010
Total Posts: 577
16 Aug 2015 08:11 PM
I'm making a "Record Wins" counter for my game. All I need to do is go through them and find which one is biggest. How should I do this properly?

Thanks,
Frriend
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
16 Aug 2015 08:12 PM
Use an OrderedDataStore.
Report Abuse
76km is not online. 76km
Joined: 14 Aug 2015
Total Posts: 5455
16 Aug 2015 08:13 PM
wiki.roblox.com

click that

and search up OrderedDataStore
Report Abuse
frriend is not online. frriend
Joined: 07 Feb 2010
Total Posts: 577
16 Aug 2015 08:24 PM
Thanks, How do I determine the page number of my data? Pages have me a bit hooked up.
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
16 Aug 2015 08:26 PM
You count them yourself.
Report Abuse
frriend is not online. frriend
Joined: 07 Feb 2010
Total Posts: 577
16 Aug 2015 08:43 PM
Awesome. Figured it out, but is there a way to exit a while true do loop without breaking? breaking appears to stop the loop forever.
Report Abuse
robloxer8282 is not online. robloxer8282
Joined: 25 Dec 2012
Total Posts: 819
16 Aug 2015 08:44 PM
Maybe use a different type of loop?
Report Abuse
frriend is not online. frriend
Joined: 07 Feb 2010
Total Posts: 577
16 Aug 2015 08:46 PM
I need it to run forever. Also, I should mention that I've returned from a while off roblox and I still have most of my lua knowledge, but some has slipped my mind. I apologize if these questions appear as stupid obvious.
Report Abuse
CynicalBusiness is not online. CynicalBusiness
Joined: 02 Oct 2009
Total Posts: 879
16 Aug 2015 08:46 PM
While loops break out when the condition fails, as do do-while loops and the repeat-until loops. There's no kind of loop that won't do it.

Try putting another loop around it to keep trying to re-enter the inner loop.
Report Abuse
frriend is not online. frriend
Joined: 07 Feb 2010
Total Posts: 577
16 Aug 2015 08:47 PM
Loopception. Got it.
Report Abuse
robloxer8282 is not online. robloxer8282
Joined: 25 Dec 2012
Total Posts: 819
16 Aug 2015 08:47 PM
like
repeat
--something
until --something
Report Abuse
robloxer8282 is not online. robloxer8282
Joined: 25 Dec 2012
Total Posts: 819
16 Aug 2015 08:48 PM
http://wiki.roblox.com/index.php?title=Loops
try this
Report Abuse
CynicalBusiness is not online. CynicalBusiness
Joined: 02 Oct 2009
Total Posts: 879
16 Aug 2015 08:49 PM
Sometimes the solution isn't the prettiest looking one. This is ROBLOX Lua after all, the language where chaining .Parent calls into infinity is reasonable and accepted.
Report Abuse
frriend is not online. frriend
Joined: 07 Feb 2010
Total Posts: 577
16 Aug 2015 08:49 PM
That worked. Thanks for the help guys. :)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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