function onTouched(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
local name = player.TeamColor
if script.Parent.brickColor == player.TeamColor then
game.lighting.blocks:findFirstChild(name,true)
if found then
found.Value = found.Value+1
end
|