Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Tool equipter not working?

Asked by 8 years ago

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!

0
is the script local or normal one? davness 376 — 8y
0
Normal ghosteffectz 115 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

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!

0
Sorry, but its still not working ghosteffectz 115 — 8y
0
Press F9 while playing the game on ROBLOX Player and look for the problems. PlantChampion 136 — 8y
0
No errors... ghosteffectz 115 — 8y
Ad

Answer this question