Im trying to make a LocalScript It fires a function if script.Parent:GetChildren() Are mouseentered but it wont work
local childs = script.Parent:GetChildren()
childs.MouseEnter:connect(function()
print("works")
end)
Error: MouseEnter is a nil value

4 comments
Will it cause lag? i think no
It wont cause lag, and if it does, and a wait(.1) to it
It would be better if you only connected the event to the frame not every child.
Use :IsA('GuiObject') if you want it to be compatible with all gui objects. Also, use :GetDescendants()