generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Occasional error

Previous Thread :: Next Thread 
robocu3 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
23 Jun 2014 03:30 PM
bump
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image