I am trying ot make a gui that highlights the gui the mouse is in,but it does not function or even produce an error Here is what my code reads:
local children = script.Parent:GetChildren()
for i,v in pairs(children) do
if v:IsA("TextButton") then
v.MouseEnter:connect(function()
v.BorderSizePixel = 1
v.BorderColor3 = Color3.new(0,255,255)
end)
v.MouseLeave:connect(function()
v.BorderSizePixel = 0
end)
v.MouseButton1Click:connect(function(clicked)
clicked.BorderSizePixel = 1
clicked.BorderColor3 = Color3.new(0,255,255)
end)
end
end

6 comments
It popped out ' MouseEnter is not a valid member of ClickDetector'
try now
-_- "MouseButton1Click is not a valid member of ClickDetector"..Line 1
MouseButton1Click is MouseClick... Change it to MouseClick and correct my answer
Does not work no output,you understand i want it to highlight text buttons right? not the frame?
yh