|
| 03 Jun 2015 05:16 PM |
I made a script where when you click the imagebutton your money "VC" gets subtracted but it won't work.
plr=game.Players.LocalPlayer d=true script.Parent.MouseButton1Click:connect(function() if d and plr.leaderstats:findFirstChild("VC") and plr.leaderstats.VC.Value>=script.Parent.price.Value then d=false plr.leaderstats.VC.Value=plr.leaderstats.VC.Value-script.Parent.price.Value local sig=Instance.new("NumberValue") sig.Parent=plr.SignatureSkills sig.Name="AnkleBreaker" script.Parent:Destroy() d=true end end)
|
|
|
| Report Abuse |
|
ohno1112
|
  |
| Joined: 23 Mar 2013 |
| Total Posts: 833 |
|
|
| 03 Jun 2015 05:20 PM |
| please learn proper spacing and indenting conventions before posting scripts, it makes it that much more readable and easier to understand. |
|
|
| Report Abuse |
|