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

How would I prevent the players from killing each other?

I have different weapons and I want the players to not kill each other from them. Can someone tell me what should I use/do? I do not want a ready-made script for me just to help me on what should I do. Like what should I use.

2 answers

✓ Accepted answer

Have you tried putting Bools on your Player? If the Bool Value is true then that means the player is in a safe zone and if it's false then the player can be killed.

Now you move on to the parts/places in which if they touch a brick the bool values inside them will change (like going to a safe zone area).

Then you move on to the weapons. Although it may take time to edit everything. It is one of the ways you can prevent people from killing each other..

2 comments

0

No scripts like you asked. Although explaining with scripts might be a lot easier.

0

I never thought of that, thank you!

Ask them nicely.

OR-if they don't comply, you can always remove the damage part of the script in the weapons.

It would look something like this:

Humanoid.Health = math.abs(Humanoid.Health)-DamageAmount

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