Hello! I’m trying to work on this SurfaceUI, and it was working completely fine until this issue randomly appeared.
I have a frame of ImageButtons which are not working. When you click them, nothing occurs, however the script recognizes them. It also recognizes all of the other buttons, they all work.
I’ve tried;
- Setting ZIndex to highest number
- Setting LayoutOrder to highest number
- Printing whenever clicked (no result)
- Ensuring the UI is in SurfaceGUI
- Setting Buttons/Frame as Modal
Let me know if you have any ideas.
Explorer Layout
Stars Frame / Button Properties
Star Code
for _,Star in pairs(App.Stars:GetChildren()) do
if(Star:IsA("ImageButton")) then
print("StarExists") -- Works!
Star.MouseButton1Click:Connect(function()
print("GotClick!") -- Doesn't work!
end)
end
end