script.Parent.blade.Touched:connect(function(p)
if script.Parent.CanDamage.Value == true then
script.Parent.CanDamage.Value = false
p.Parent.Humanoid:TakeDamage(6)
end
end)
Here is the weapon I want to be anti team kill but I don't know how to make it that way. Is there anyone who show me how to add a anti-TK part to this? Cause it is so frustrating I've looked everywhere and there's no tutorials or anything on how to make a player on a team ignore damage there's only scripts that kills both players so please help me.

1 comment
You should show what you've tried, places you've looked, and what exactly you don't understand. Asking how to do things without having tried to do the thing isn't constructive.