korky5000
|
  |
| Joined: 20 Aug 2008 |
| Total Posts: 228 |
|
|
| 08 Feb 2013 12:07 PM |
function onTouched (part) h = part.Parent:findFirstChild("Humanoid") if (h ~= nil) then h.Backpack:GetChildren() remove()
end end script.Parent.Touched:connect(onTouched)
It says line 2 in my output. I can't figure it out. |
|
|
| Report Abuse |
|
|
| 08 Feb 2013 01:30 PM |
function onTouch(part)
local Humanoid = part.Parent:FindFirstChild("Humanoid")
if Humanoid ~= nil then
for Tool = 1, #game.Players[Humanoid.Parent.Name].Backpack:getChildren() do
game.Players[Humanoid.Parent.Name].Backpack:getChildren()[Tool]:Destroy()
end
end
end
script.Parent.Touched:connect(onTouch)
|
|
|
| Report Abuse |
|