I making a team that only take damage from other team members. I got kinda stuck but here is the script.
Local Script in Team:
local team = script.Parent
local player = game.Players.LocalPlayer
local humanoid = player.Character:WaitForChild("Humanoid")
if player.Team == team then
humanoid:TakeDamage(10)
end
On my reply above, Instead of using ~=(not equal) use ==(equal) and if you want all the players to be able to kill each other, remove the if statement completely.