Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Humbly Requesting Surface GUI Help?

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.

3 comments

0

Would you make it a free model so we can see it?

0

Edited my answer and fixed it should work now.

2 answers

✓ Accepted answer

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.

2 comments

0

Way better answer then mine, also the adornee worked for me so uhh :hyperthink:

0

lol, not for me, it might have loaded faster on your computer though

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 :)

1 comment

0

Oof if you add it in the suface GUI it breaks hold on editing my answer.

This discussion is preserved as it was. New answers, comments, and votes are closed.