Im trying to make an ability where when you hold shift a shield appears and when you let go it dissapears. I already have it coded but the problem lies with structure of the module script, it gets confused when the two players use the ability and starts messing up the cooldown variables and times. How would I achieve this affect.
Add a table called cooldown and add players to it when they activate the shield. If they are not in the table, add them and remove them when they stop holding shift
I mentioned above to add players If their shield isn’t active and remove them once their shield deactivates. Doing so helps your module script to differentiate between players