Hello everyone,
I am currently working on a Surface Gui where you click on an arrow (ImageButton) and it moves the part to a location. However, the Surface Gui arrows are invisible whenever I test the game. All suggestions and recommendations are welcome. Thank you, for your time.
--Surface Gui arrows (ImageLabels) are visible in Studio mode, their properties are AlwaysOnTop and Visible, as well.
Well, like mool210 tried, Enabling the Gui or changing the Adornee won't work.
I tried to see if the problem was the Z-Index, but that didnt change anything, and I will note that the 4 Arrows would not always be visible in Studio (even if they were pre-loaded).
So I'll look around a bit more to see if there's anything specific to fix this, but unless someone else figures it out, I made a make-shift version of what you're trying to accomplish here:
https://www.roblox.com/library/2794267762/Rocky
EDIT: I figured out the problem, since the Surface Gui uses a "Canvas" your chosen positions for the Buttons make them appear outside of this threshold, and thus they become invisible.
(This is more easily seen when looking at Scrolling Frames)
You have to edit the ImageButton Positions and/or add another part for them to be placed onto that is larger than the current union you have. The link above has been updated and contains your fixed Rock.
I don't know why it does that but it seems to fix if you disable and enable it in a script so try adding a script that has this on it.
wait(5) script.Parent.Enabled=false script.Parent.Enabled=true
EDIT: I found out that doesn't work so backup plan, Move the SurfaceGui to startergui and then set the adornee property by clicking then click the rock. Then It should work. Let me know if this didn't fix and it and if it did fix it please accept this answer as it gives us both rep :)