I am searching a script to disable pvp

Hello, I am searching for a script that disables pvp for like 5 minutes after you die. So when you get revived that you’re still injured and can’t fight. Or if somebody knows how to code this. Thank you : )

Kinda easy, just add a handler for the player dying (either via the vanilla events or something custom) to execute the DisablePlayerFiring native - that’ll prevent any form of attack. You can have the script then Wait() for the desired amount of time and then toggle the PvP back on.

1 Like

Okay thank you I will try it

And where do I find these events or what should I write to get this die event