robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 23 Jun 2014 01:27 PM |
"13:26:17.105 - ItemConfig is not a valid member of Part 13:26:17.106 - Script 'Players.Player1.PlayerGui.Client.clnt_backpack', Line 60 13:26:17.106 - Stack End 13:26:17.106 - Disconnected event because of exception"
;-; ItemConfig is always a member of part. I'm not sure why it isn't finding it. -=Robo=- |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 23 Jun 2014 01:47 PM |
tried a WaitForChild. It claims it's not in a datamodel, despite it BEING in a datamodel. Any hacks around this? -=Robo=- |
|
|
| Report Abuse |
|
|
youssef04
|
  |
| Joined: 22 Jan 2011 |
| Total Posts: 1745 |
|
|
| 23 Jun 2014 01:49 PM |
Script pls?
Also, how I do it, I do for example; script.Parent. -- then options appear, if the options don't appear, you may be doing something wrong. |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 23 Jun 2014 02:14 PM |
It's a long script. There's more than one. Do you want me to post only what's relevant? Or at least what I think is causing it? :/ -=Robo=- |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
|
| 23 Jun 2014 02:36 PM |
game.Workspace.DescendantRemoving:connect(function() grabItems = workspace.PICKUP:GetChildren() end) -- in the clnt_backpack, claims error ad midpoint of the script on the script editor but output says nothing?
local function PickUp() local target = Mouse.Target if target and checkDist(target) then for _, item in pairs(grabItems) do if target == item then for _ , tool in pairs(Player.Backpack:GetChildren()) do DropItem:FireServer(tool.Config.ID.Value) tool:Destroy() end end for _ , tool in pairs(Player.Character:GetChildren()) do if tool:IsA("Tool") then DropItem:FireServer(tool.Config.ID.Value) tool:Destroy() end end GiveItem:FireServer(item.ItemConfig.ItemID.Value)--claims error here, says ItemConfig is nil but it's not nil in the hierarchy and WaitForChild does nothing to help target:Destroy() break end end end
in loot table code; local function GiveItems(player, ItemID) local item = GetItemFromItemID(ItemID) for _, tool in pairs(items:GetChildren()) do if tool.Config.ID.Value == LootTable[item].ItemID then local clone = tool:Clone() clone.Parent = player.Backpack clone.Name = tool.Config.Type.Value break end end end
claims error on 2nd to last end? -=Robo=- |
|
|
| Report Abuse |
|
|
robocu3
|
  |
| Joined: 13 Mar 2009 |
| Total Posts: 6485 |
|
| |
|