local debounce = true
function ot(part)
local humanoid = part.Parent:FindFirstChild()
if humanoid ~= nil then
if game.Players:GetPlayerFromCharacter(humanoid.Parent).TeamColor == BrickColor.new("Bright blue") then
if debounce == true then
humanoid:TakeDamage(50)
debounce = false
end
end
end
end
script.Parent.Touched:connect(ot)
This script is supposed to have someone take 50 damage when they touch this, only if they're on the Bright blue team. It doesn't work. Some help?
