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 |
|
|
| |
|
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
|
  |
| 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 |
|
|
| |
|
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 |
|
|
|
| 16 Aug 2015 08:44 PM |
| Maybe use a different type of loop? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 577 |
|
| |
|
|
| 16 Aug 2015 08:47 PM |
like repeat --something until --something |
|
|
| Report Abuse |
|
|
|
| 16 Aug 2015 08:48 PM |
http://wiki.roblox.com/index.php?title=Loops try this |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| Joined: 07 Feb 2010 |
| Total Posts: 577 |
|
|
| 16 Aug 2015 08:49 PM |
| That worked. Thanks for the help guys. :) |
|
|
| Report Abuse |
|
|