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

How can I make a Equip and UnEquip script?

When you Equip a Tool/Hopperbin it'll print something like Equiped weapon, and when UnEquiped it'll print UnEquiped Weapon, I wish I explain a bit more, but thats the Best I could think of what to explain about my question.

2 answers

✓ Accepted answer
script.Parent.Equipped:connect(function()
print("The tool was Equipped!")
end)

script.Parent.Unequipped:connect(function()
print("The tool was unequipped!")
end)

Or for hopperbin

script.Parent.Selected:connect(function()
print("The hopperbin has been Selected")
end)

script.Parent.Deselected:connect(function()
print("The hopperbin has been Deselected")
end)

Put this in a tool or hopperbin! Selected for hopperbin!

8 comments

0

Hope I helped!

0

NOTE: If you want it to do hopperbin the correct term is Selected and Deselected this is for a tool and a tool only.

0

Somehow the script isn't working, when I tried it it said 'Unequipped is not a valid member of Backpack'?

0

Oh hold on

0

Don't put the script in Backpack put it in tool! Or hopperbin!

0

Oh. I am sorry for some reason it won't work :(

0

Its alright man, I'll +1 you anyway. ;)

0

Thank you!

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