This supposed to enable a "Glow" imagelabel in a button that it's either CLICKED, HOVERED or LEFT THE MOUSE from it, how do i script it correctly, because i haven't been scripting for 2-3 months and i need to remember some stuff, can someone give me a hand ? Thanks :)
local buttons = script.Parent:WaitForChild("Apps")
for i,v in pairs(buttons:GetChildren()) do
if v.ClassName=="ImageButton" then
v.Button1Down:connect()
end
end
local function enableGlow(btn)
--
end
local function disableGlow(btn, listOfButtons)
end
local buttonList = script.Parent:WaitForChild("")
for _,button in pairs(buttons:GetChildren()) do
if button.ClassName=="ImageButton" then
button.MouseEnter:Connect(function() enableGlow(button) end)
button.MouseLeave:Connect(function() disableGlow(button, buttonList) end)
button.MouseButton1Click:Connect()
end
end
