Hello everyone, It should change brick color on team color, but probably something is wrong.
Here is script:
local ting = 0
function OnTouch (CLight)
if ting == 0 then
ting = 1
script.Parent.Parent.Parent.Lights.Ball.BrickColor = game.Players.LocalPlayer.TeamColor
script.Parent.Parent.Parent.Lights.C1.BrickColor = game.Players.LocalPlayer.TeamColor
script.Parent.Parent.Parent.Lights.C2.BrickColor = game.Players.LocalPlayer.TeamColor
script.Parent.Parent.Parent.Lights.C3.BrickColor = game.Players.LocalPlayer.TeamColor
script.Parent.Parent.Parent.Lights.C4.BrickColor = game.Players.LocalPlayer.TeamColor
script.Parent.Parent.Parent.Lights.C5.BrickColor = game.Players.LocalPlayer.TeamColor
script.Parent.Parent.Parent.Lights.C6.BrickColor = game.Players.LocalPlayer.TeamColor
script.Parent.Parent.Parent.Lights.C7.BrickColor = game.Players.LocalPlayer.TeamColor
script.Parent.Parent.Parent.Lights.C8.BrickColor = game.Players.LocalPlayer.TeamColor
script.Parent.Parent.Parent.Lights.C9.BrickColor = game.Players.LocalPlayer.TeamColor
script.Parent.Parent.Parent.Lights.C10.BrickColor = game.Players.LocalPlayer.TeamColor
script.Parent.Parent.Parent.Lights.C11.BrickColor = game.Players.LocalPlayer.TeamColor
script.Parent.Parent.Parent.Lights.C12.BrickColor = game.Players.LocalPlayer.TeamColor
end
ting = 0
end
script.Parent.Parent.CLight.Touched:connect(OnTouch)

3 comments
I think you did 2 things wrong: 1. You have server script (LocalPlayer is nil in server scripts). 2. Your script in Workspace (LocalScripts doesn't work in Workspace)
It's not in Workspace. It's in CLight part.
When people say something is in the Workspace, they mean that it is a descendant of Workspace. (CLight part is in the workspace, or its parent is, or its parent parent is, or its parent parent parent is, etc)