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

How to prevent the removal of tools from my hands, but at the same time I could switch between them?

I am creating a shooter and I want to prohibit the removal of weapons from my hands, but only switch between them, an rifle, a gun and a knife. I am poorly versed in scripts and do not understand how to do this, so I will be very grateful to the person who will help me.

2 answers

If the gun or weapon is a tool you can go to properties and click on CanBeDropped.

Or you could use something like this in a local script:

game.Players.LocalPlayer.Backpack.Rifle.CanBeDropped = false

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