of     1   

Kaze
#1140060Thursday, May 29, 2008 2:19 AM GMT

Output is a scripter's best friend. It tells you what you messed up on, what part of the script it's at, and even tells you how to fix it! If you do not understand what Output is saying, post it here.
coelho714
#1140117Thursday, May 29, 2008 2:27 AM GMT

Lol, already posted a long time ago about using the Output. In case, if you find some of the following errors, some help: "attempt to index a nil value"; "Workspace.Script.#Line: expected 'character'"; - Where 'character' can be '(', ')', '#', etc. Do you have any other? Lol.
Kaze
#1140210Thursday, May 29, 2008 2:37 AM GMT

The first one means that the thing you're trying to access is inexistant. The second one defines exactly what Output would say.
skullorz
#1141914Thursday, May 29, 2008 9:51 AM GMT

whats Output? and also i need help on this script that, when you click, it makes a tool appear inside your backpack, and if you have a tool that was spawned inside it... it would be removed on this part.... if(children[i].className == "HopperBin" ) it said only hopperbin so it would select tools without a handle so i edited it to this if(children[i].className == "HopperBin" or children[i].className == "Tool") i tested DID NOT WORK not even hopperbin worked! i need help on it PLEASE HELP! HERE IS THE WHOLE THING local bin = script.Parent mode = 0 weapons = {} children = bin:children() for i=1,#children do if(children[i].className == "HopperBin" or children[i].className == "Tool") table.insert(weapons,children[i]) end end table.sort(weapons, function (obj1, obj2) if(obj1.Name < obj2.Name) then return true end return false end ) curTool = weapons[1].Name function onButton1Down(mouse) mode = mode + 1 giveTool() end function giveTool() local player = game.Players.LocalPlayer if player == nil then return end print("trigger") if(player.Backpack:findFirstChild(curTool) ~= nil) then player.Backpack[curTool]:remove() end if(mode > #weapons) then mode = 1 end if(mode < 1) then mode = #weapons end weapons[mode]:clone().Parent = player.Backpack curTool = weapons[mode].Name end function keyDown(key) print(key) if(key == "q") then mode = mode - 1 giveTool() end end function onSelected(mouse) print("select") mouse.Icon = "rbxasset://textures\\GunCursor.png" mouse.Button1Down:connect(function() onButton1Down(mouse) end) mouse.KeyDown:connect(keyDown) end bin.Selected:connect(onSelected)
skullorz
#1141926Thursday, May 29, 2008 10:00 AM GMT

just figured out what Output was so i typed in the problem if (children[i].className == "HopperBin" or "Tool") i forgot a then return end so ill check the other parts
skullorz
#1141935Thursday, May 29, 2008 10:06 AM GMT

changed some stuff now local bin = SuperTool mode = 0 weapons = {} children = bin:children() for i=1,#children do if(.className == "HopperBin" or children[i].className == "Tool") then end table.insert(weapons,children[i]) end end only part i tried to fix testing right now

    of     1