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

How To Disable Player Vs Player But Still Do And Take Damage From NPC's?

This would be greatly appreciated if anyone could help. I also would need to know where to put the script (If Needed). So if anyone could help me thank you.

1 comment

0

I was wondering the same thing.

2 answers

Just make a CanPVP bool value, if it is set to true pvp will be disabled ( player wont get damage by any other player)

-------- ur function
local CanPVP = script.Parent:WaitForChild("CanPVP")

if CanPVP.Value == true then
------ damage

else 

---- damage = 0

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