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

How to disabled unequipped on a tool?

If you disable CanBeDropped and the player press delete in keyboard the tool will be unequipped. So now how to prevent this?

2 comments

0

i dont think you can you can make your own backpack

0

But the backpack is not responsible of that?

2 answers

My guess is you can add a ChildAdded event to backpack and check if the child is the tool you want to stay equipped, if it is then call Humanoid:EquipTool(Tool)

game.Players.LocalPlayer.Backpack.ChildAdded:connect(function(Tool)
if Tool.Name == "ToolName" then --Replace ToolName by the tool's name
game.Players.LocalPlayer.Character.Humanoid:EquipTool(Tool)
end
end)

2 comments

0

Tu parle francais?:3

0

J'ai déjà essayé, mais on voit le tool se déséquiper et rééquiper, ça marche, mais c'est moche:/

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