TheMesgi
|
  |
| Joined: 03 Mar 2012 |
| Total Posts: 360 |
|
|
| 16 Feb 2015 04:56 PM |
This is supposed to be a deposit to bank script but it doesnt work.
Button is a textbutton v is a textbox
Button = script.Parent v = Button.Parent.value Button.MouseButton1Down:connect(function() if v.Text <= script.Parent.Parent.Parent.Parent.cashsc.cashf.cashbox.Value.Value then script.Parent.Parent.Parent.Parent.cashsc.cashf.cashbox.Value.Value = script.Parent.Parent.Parent.Parent.cashsc.cashf.cashbox.Value.Value - v.Text script.Parent.Parent.Parent.Parent.cashsc.cashf.cashbox.bamoney = script.Parent.Parent.Parent.Parent.cashsc.cashf.cashbox.Value.Value + v.Text end end) |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2015 04:57 PM |
"if v.Text <= script.Parent.Parent.Parent.Parent.cashsc.cashf.cashbox.Value.Value then"
I'm sure you mean
if tonumber(v.Text) <= .....
btw, should check if the text is a number first |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 16 Feb 2015 04:57 PM |
| i stopped reading at "script.Parent.Parent." |
|
|
| Report Abuse |
|
|