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

How do I prevent a weapon from being unequipped?

Asked by
NsNidPL 41
5 years ago

Hello. I am planning to make a team-based shooter. I want to make a custom weapon switch system, so I have to disable the backpack CoreGUI. When I do that, I can pick up weapons (tools) BUT if I attempt to drop it (even when can be dropped is false) it is unequipped and can't be equipped again. Is there a way to prevent a tool/weapon from being unequippped?

0
(assuming we have the player defined, Tool is also the gun in question.) Tool.Unequipped:Connect(function() player.Character.Humanoid:EquipTool(Tool) end) InfiniteYield 41 — 5y
0
i guess this will do the trick, but is there a less, uhh, hacky way? that will disable backspace unequip bind? NsNidPL 41 — 5y

Answer this question