Hello, I want to activate a function when the mouse clicks an ImageButton, witch is in a BillboardGui.
The script bellow is in StarterGui
local part = workspace.Part
local ui = part:WaitForChild("billboard")
local img = ui:WaitForChild("click button")
img.MouseEnter:connect(function()
print("mouse enter")
end)
img.MouseButton1Click:connect(function()
print("clicked")
end)
Nothing prints and no error appears. Please help me!

1 comment
at line 1 its "local part = workspace:WaitForChild("Part")"