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: Using Math in Scripts

Previous Thread :: Next Thread 
FIRECAKE is not online. FIRECAKE
Joined: 28 Feb 2009
Total Posts: 25167
07 Aug 2012 10:58 AM
Alright so this is something I've been trying to find information on for a while, I looked through the wiki and didn't really find anything helpful.

Basically what I'm trying to do with this is make a scoreboard. Right now I have 20 buttons that represent 20 different numbers.

So what I'm wanting to get at is something that would work like, you hit one button and it does +1 to the total, and depending on the total, a number 1-20 will be shown on the board. Another button would do -1.

Any tips on where to start?

⊂=-҉Ξ҉-=⊃ Nobody said it was easy. No one ever said it would be this hard. I'm going back to the start. ⊂=-҉Ξ҉-=⊃
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
07 Aug 2012 11:00 AM
So, button:

.Touched event

Adds one to total

ends

And Scoreboard:

.Changed event

display total

end

?

† KMXD †
Report Abuse
FIRECAKE is not online. FIRECAKE
Joined: 28 Feb 2009
Total Posts: 25167
07 Aug 2012 11:02 AM
Does it have to be Touched or could it be Clicked?

⊂=-҉Ξ҉-=⊃ Nobody said it was easy. No one ever said it would be this hard. I'm going back to the start. ⊂=-҉Ξ҉-=⊃
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
07 Aug 2012 11:03 AM
Either, just some pseudo code, though something like that?

† KMXD †
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