z_Jordan
|
  |
| Joined: 23 Dec 2016 |
| Total Posts: 4 |
|
|
| 27 Mar 2017 05:40 PM |
Error// = 17:36:09.956 - Players.Player1.PlayerGui.WeaponShopGUI.TextLabel.BuyScript:10: attempt to index a nil value
local items = script.Parent.Frame:GetChildren()
for i = 1, #items do function buy() Cash = script.Parent.Parent.Parent.Parent.leaderstats:FindFirstChild(items[i].Currency.Value) h = Instance.new("Hint") h.Parent = script.Parent.Parent.Parent if Cash.Value >= items[i].Cost.Value then Cash.Value = Cash.Value - items[i].Cost.Value toolca = ga################################################################################################################# toolcb = ga################################################################################################################### toolca.Parent = script.Parent.Parent.Parent.Parent.Backpack toolcb.Parent = script.Parent.Parent.Parent.Parent.StarterGear print("Successfully bought!") h.###### #Y####ave bought " ..items[i].ItemName.Value.. "!" else print("Insufficient money!") ###### # #### don't have enough " ..items[i].Currency.Value.. "!" end Game:GetService("Debris"):AddItem(h, 2) end items[i].BuyButton.MouseButton1Click:connect(buy) end |
|
|
| Report Abuse |
|
z_Jordan
|
  |
| Joined: 23 Dec 2016 |
| Total Posts: 4 |
|
|
| 27 Mar 2017 05:42 PM |
Smh, If you want to help me just add me on Discord please/ Jordan //@Jordan - Vetion#2929 or Vetion#2929
:L |
|
|
| Report Abuse |
|