ns001111
|
  |
| Joined: 15 Jan 2011 |
| Total Posts: 2849 |
|
|
| 12 Jul 2011 03:20 PM |
script.Parent.MouseButton1Click:connect(function() bought = script.Parent.Bought.Value print 'Clicked' Weapon = script.Parent.Weapon if bought == "no" and Weapon then wait() credits = script.Parent.Parent.Parent.Parent.Parent.leaderstats.Credits.Value if credits >= 100 then -- Put Price There credits = credits - 100 -- Put the Number above here too Weapon:Clone().Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack Weapon:Clone().Parent = script.Parent.Parent.Parent.Parent.Parent.StarterGear bought = "yes" end end end end)
Ok, it works. But it doesn't subtract the credits. It just skips over that part.... |
|
|
| Report Abuse |
|
|
ns001111
|
  |
| Joined: 15 Jan 2011 |
| Total Posts: 2849 |
|
| |
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 12 Jul 2011 03:36 PM |
script.Parent.MouseButton1Click:connect(function() bought = script.Parent.Bought.Value print 'Clicked' Weapon = script.Parent.Weapon if bought == "no" and Weapon then wait() credits = script.Parent.Parent.Parent.Parent.Parent.leaderstats.Credits if credits.Value >= 100 then -- Put Price There credits.Value = credits.Value - 100 -- Put the Number above here too Weapon:Clone().Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack Weapon:Clone().Parent = script.Parent.Parent.Parent.Parent.Parent.StarterGear bought = "yes" end end end end)
|
|
|
| Report Abuse |
|
|
ns001111
|
  |
| Joined: 15 Jan 2011 |
| Total Posts: 2849 |
|
|
| 12 Jul 2011 03:38 PM |
Nope. Still doesn't subtract. D: |
|
|
| Report Abuse |
|
|
zeke505
|
  |
| Joined: 26 May 2008 |
| Total Posts: 15765 |
|
|
| 12 Jul 2011 03:39 PM |
| Try it again, because it should work. I tested it and it worked. |
|
|
| Report Abuse |
|
|
ns001111
|
  |
| Joined: 15 Jan 2011 |
| Total Posts: 2849 |
|
|
| 12 Jul 2011 03:44 PM |
| Nope. Didn't subtract the credits. Just gives you tool. :/ |
|
|
| Report Abuse |
|
|