How would I make this BackgroundColor3 script apply to all children?
I have tried to do it.. and failed. Currently it only works for a Child it finds named "Store"
How would I re-code it so that it applies to all children?
Any help is greatly appreciated!
Here is the coding:
for i,v in pairs(script.Parent:GetChildren()) do
if v.Name ~= "Script" then
if v.Name == "Store" then
v.MouseEnter:connect(function()
v.BackgroundColor3 = Color3.new(255,0,0)
end)
end
end
end

1 comment
Thank you for you help, but I figured out how to do it. :)