How do I add equip cooldown without disabling backpack?

I need help with how to add equip cooldown to tool.

Logic behind It is that I have looked all devforum posts and tried all of their solutions but It doesn’t work from Re-enterancy event error.

I’m trying to do a system where we can use normal backpack ui and when you equip a tool,It will give a cooldown for other tool to be used.

Within that cooldown no other tools can be equipped.Even If It has attempted to equip a new tool while old tool’s cooldown is still present,It will replace new tool with old tool and continue the cooldown.

I have asked this question but the solution didn’t satisfy me since It actually didn’t block equipping.

not sure what you mean by "Re-enterancy event error "

I am also very curious why this system must remain in the old backpack system? is there any requirement besides reducing complexity?

I feel like removing the concept of “old backpack” enitrely and whipping up ur own would make this very easy to achieve you just need to understand tables. and how to setup ur new tool system.

I want to keep the old backpack system for compatitability with other tools within game (like from other developers,etc)

Maximum Re-entreancy error happens when It fires events like looped.

Making custom backpack system doesn’t mean it can’t be compatible with normal tools. You can still use the backpack feature in every player instance, this way any tool instance that gets added will normally be registered in your custom backpack ui. You can just disable the core ui and make your own, but keep the way your backpack system works similarly to original backpack ui provided by Roblox.

How can i disable roblox’s equipping logic with touch and make a new one that will not force equipping instantly?Is it with collide or touch events?

Since i will need to equip if conditions are met.

Use touch on a normal part, validate the conditions, then clone the tool from wherever your tools are stored into the Backpack. The tool handle settings are what cause the player to pick it up automatically.

Alright so I will not make a whole new backpack system.But what I need to know is that I would like to disable touching once cooldown is active for one specific player.But I don’t know how can I disable touch events for one player.

If anyone knows,please respond.I have no Idea on how to do it.

The part with the .Touched event is what controls the touched option. It can’t ignore specific players. Your code has to check who touched it and ignore them if they’re on cooldown.

Do you have a script that you need help with?