So I'm trying to make it so when you step on a brick it turns into the players team color. Here's the script:
function onTouched(hit)
local human = hit.Parent:findFirstChild("Humanoid")
if (human ~= nil ) then
local Color = hit.Parent.TeamColor
script.Parent.Color = Color
end
end
script.Parent.Touched:connect(onTouched)
