Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Tool equipter not working?

I made this tool so that this tool is equipped no matter what, if they out it away it will be taken back out but I doesn't work, and does nothing

local tool = script.Parent
local player = script.Parent.Parent.Parent
repeat wait() until player.Character --Wait until player model loads
tool.Parent = player.Character --Equipping tool
tool.CanBeDropped = false
function equipAgain()
    if tool.Parent == "Bakpack" then
            tool.Parent = player.Character
    end
end
tool.Parent.Changed:connect(equipAgain)

THANKS!

2 comments

0

is the script local or normal one?

0

Normal

1 answer

It might be because the Backpack is mispelled.

local tool = script.Parent
local player = script.Parent.Parent.Parent
repeat wait() until player.Character --Wait until player model loads
tool.Parent = player.Character --Equipping tool
tool.CanBeDropped = false
function equipAgain()
    if tool.Parent == "Backpack" then
            tool.Parent = player.Character
    end
end
tool.Parent.Changed:connect(equipAgain)

Hope this helped!

3 comments

0

Sorry, but its still not working

0

Press F9 while playing the game on ROBLOX Player and look for the problems.

0

No errors...

This discussion is preserved as it was. New answers, comments, and votes are closed.