|
| 27 Jul 2013 02:03 AM |
Cash = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.leaderstats.Points
function onClick() if Cash.Value >= 50 then Cash.Value = Cash.Value - 50 local RockLaunch = game.Lighting.Claymore:clone() RockLaunch.Parent = script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Backpack RockLaunch.Handle.Anchored = false script.Parent.Parent.Button:destroy() end end
script.Parent.MouseButton1Click:connect(onClick)
Were it says "script.Parent.Parent.Button:destroy()" It makes the whole think not work. I have removed it then the script the works again, How do I fix that?
|
|
|
| Report Abuse |
|
|
WishNite
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 15828 |
|
|
| 27 Jul 2013 02:04 AM |
| I'm not sure, I'm pretty sure it's :Destroy() with a capital D. |
|
|
| Report Abuse |
|
|
| |
|
| |
|