yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 09 Aug 2014 01:57 PM |
This isn't working. I have this script in a TextButton, which is in a Surface gui. When you click it, I want the value to change. But nothing is happening.
script.Parent.MouseButton1Down:connect(function() script.Parent.Parent.Price.Value = script.Parent.Parent.Price.Value + 5.00 end) |
|
|
| Report Abuse |
|
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 09 Aug 2014 02:04 PM |
| It needs to be, as you're accessing the button locally |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 09 Aug 2014 02:06 PM |
| do i change anything inside the script aswell? |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
|
| 09 Aug 2014 02:31 PM |
script.Parent.MouseButton1Down:connect(function() script.Parent.Parent.Price.Value = script.Parent.Parent.Price.Value + 5.00 end) |
|
|
| Report Abuse |
|
|
|
| 09 Aug 2014 02:31 PM |
script.Parent.MouseButton1Down:connect(function() script.Parent.Parent.Price.Value = script.Parent.Parent.Price.Value + 5 end)
|
|
|
| Report Abuse |
|
|