So I'm helping a friend and I'm not entirely sure how to change a brick color for just one person. Here is his code:
function onTouched(abc,hit)
if hit.Parent:FindFirstChildOfClass("Humanoid") then
wait(1)
abc.BrickColor = BrickColor.Green()
end
end
for i,v in pairs(script.Parent:GetChildren()) do
if v.Name == "check" then
v.Touched:Connect(function(hit)
onTouched(v,hit)
end)
end
end
If you could point us in the right direction or help us out that would be awesome :)
