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: How do you subtract a value from a stringvalue?

Previous Thread :: Next Thread 
TheDaftPunkGuy is not online. TheDaftPunkGuy
Joined: 05 Jul 2012
Total Posts: 408
08 Jul 2016 01:02 PM
Using a script ofc

plis help


lapis4bob4life
Report Abuse
TheBenSquare is not online. TheBenSquare
Joined: 13 Dec 2009
Total Posts: 13604
08 Jul 2016 01:03 PM
Convert the value of the StringValue to a number using the tonumber function and then do the math.
Report Abuse
TheDaftPunkGuy is not online. TheDaftPunkGuy
Joined: 05 Jul 2012
Total Posts: 408
08 Jul 2016 01:04 PM
^ Sorry, I cant understand. I'm a noob at scripting


lapis4bob4life
Report Abuse
TheBenSquare is not online. TheBenSquare
Joined: 13 Dec 2009
Total Posts: 13604
08 Jul 2016 01:05 PM
You'll basically just have to do this.

local num = tonumber(StringValue.Value)
print(5 - num)
Report Abuse
TheDaftPunkGuy is not online. TheDaftPunkGuy
Joined: 05 Jul 2012
Total Posts: 408
08 Jul 2016 01:50 PM
doesnt work for me


lapis4bob4life
Report Abuse
TheBenSquare is not online. TheBenSquare
Joined: 13 Dec 2009
Total Posts: 13604
08 Jul 2016 01:59 PM
Then you're doing something wrong. And, just as a note, you have to edit the code I gave you to make it work if you're using my code.
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