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
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 09 Feb 2016 02:04 AM |
| cash.Value = cash.Value + 1 |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| 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 |
|
|