I got this from the scripting helpers forum. I am trying to get it so that when someone of one team trys to shoot another person of the same team, nothing will happen(Meaning that the other person will not take damage). Why does it not work? The script is:
`thingy.Touched:connect(function(hit)
player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player.TeamColor == game.Players.LocalPlayer.TeamColor then
return false
else
player.Character.Humanoid:TakeDamage(5)
end)
`

1 comment
Ok sorry. This is only my second question on here.