Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do you make a Anti-Team killing script?

Asked by
iFlusters 355 Moderation Voter
10 years ago

So recently I've been looking around for a Anti-Team killing script and none seem to work. Or if they do, they kill the person who killed you if they're on your team. I was wondering if anyone knows how to script a script that makes it so when you fire at your team-mate then he won't take damage, although the enemy will take damage. This is for my game 'Intensity' and it is a vital part for it.

Thank you for reading -iFluster

1 answer

Log in to vote
0
Answered by 10 years ago

Add to sword a script:

--Touched function
--Check what player you hit.
--Check Team.
--If team, sword removes 0 health for 1 second.
--Function end

Sorry For not lua.

Ad

Answer this question