Well, I need help with this since I need not to be able to select any tool that you have in the inventory so that it does not give me any bug when making a function that needs this. Basically I need the item bar to be locked
this will stop them from activating tools, though not equiping/unequipping
local function lock(bool)
for _, tool in pairs (player.Backpack:GetChildren()) do
tool.ManualActivationOnly = bool
end
end
You can call humanoid:UnequipTools once they have equipped a tool, then when you want to unlock the tool you can disconnect the equipped event.
3 Likes
I thought it would work but no, the tools can still be equipped