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

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

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.

1 comment

0

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

1 answer

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.

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