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

Automatic Equip, and Can't be Unequipped, help? [closed]

Asked by 7 years ago

So long story short, I want a button, when you press it you will get a tool that will be automatically equipped and cannot be unequiped. (Backpack is already gone.) Is there any way to make this happen? I have the weapon, and the gui. I've tried many ways to do this but I can't seem to be able to make this happen.

Any Suggestions?

Closed as Not Constructive by abnotaddable, hiimgoodpack, and Void_Frost

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 7 years ago

Disable the CanBeDropped property, and hide the Backpack CoreGUI. Now, force Humanoid:EquipTool(Instance Tool)

Tool.Unequipped:connect(function()
        wait()
       player.Character.Humanoid:EquipTool(Tool)
end)

This basically forces the player to equip it after he or her unequips it.

Ad