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

How to prevent teamkilling?

I am bored of teamkilling so I asked the question. K?

1 answer

You need to edit the source. In a script, there's a line or two where it damages/kills a the player it comes in contact with. Add a line somewhat like this to prevent damage being taken if the other person is on the same team.

if not p.TeamColor == a.TeamColor then
	--damage
end

Of course, you'll need to edit the variables.

2 comments

0

Thank You!

0

Thank me by accepting this answer!

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