Hello Scripters! I am working on a game where you aren't supposed to kill your own teammates with your gun. However whenever I try implementing this it just breaks the whole gun. The gun I am using is in the roblox developer gun kit. I am using the AR gun from the selection. The link to the gun kit is here: Paste this into the browser top bar or else it will say blocked for some reason. https://developer.roblox.com/en-us/articles/weapons-kit So inside the AR1(Tool) > WeaponsSystem(Folder) > WeaponsSystem(Script) on line 428 there is an if then part where it then causes damage. I have tried to modify it by putting:
if target:IsA("Humanoid") and target.Team = Players then
target:TakeDamage(amount)
end
But it Did not work. So can you please help me how I can make it you cant damage your team mates?

3 comments
Please include more to your script, what it "Players?"
Link fixed
thanks