How do i make a brick that damages (not killls) a players in a specific team and that doesnt damages players from a other specific team? I am not an expert in scripts im sorry. This is the script that i used:
local Debounce = false
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and Debounce == false then
Debounce = true
hit.Parent.Humanoid:TakeDamage(10)
wait (1)
Debounce = false
end
end)

1 comment
oh. try using teamservice.