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

What's wrong with this script? Tool onEquip - clone()

Asked by 8 years ago
armor = game.ServerStorage.Armor

chest = armor.Chest
legs = armor.Legs

lElbow = chest.LeftElbow
rElbow = chest.RightElbow
lShoulder = chest.LeftShoulder
rShoulder = chest.RightShoulder
uTorso = chest.UpperTorso
lTorso = chest.LowerTorso

function onEquip()
    armor:Clone().Parent = script.Parent.Parent
end

script.Parent.Equipped:connect(onEquip)

I don't understand what's wrong.

0
It seems to be that ROBLOX is just not detecting that the tool is equipped. Is it currently broken or something like that? Suffixed 0 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

Finally figured out the issue. I was trying to make a Tool act as if it were a HopperBin and that did not work at all. Simply added a Handle and everything ran perfectly.

Ad

Answer this question