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: Whats up with this script?

Previous Thread :: Next Thread 
Mapyo is not online. Mapyo
Joined: 04 Jun 2009
Total Posts: 475
09 Feb 2016 02:04 AM
1 local cashBrick = script.Parent
2 local cashValue = script.Cash
3 local function addCash()
4 wait()
5 cashValue + 1
6 end
7
8 cashBrick.Touched:connect(addCash)

The error is on line 5.
Error message: " Error:(5,12)Expected'='got'+' "

MyWorkspace:
Workspace.CashBrick.CashAdder.Cash
(Note: Cash is a number value.)

Let me know whats wrong

Thanks
-Mapyo
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Feb 2016 02:04 AM
cash.Value = cash.Value + 1
Report Abuse
Mapyo is not online. Mapyo
Joined: 04 Jun 2009
Total Posts: 475
09 Feb 2016 02:05 AM
Thank you so much. I will give it a try.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
09 Feb 2016 02:05 AM
Woops, read that wrong.
cashValue.Value = cashValue.Value + 1
Report Abuse
Mapyo is not online. Mapyo
Joined: 04 Jun 2009
Total Posts: 475
09 Feb 2016 02:09 AM
Cool, it works!
I may ask you for some help later.
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