Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Humbly Requesting Surface GUI Help?

Asked by 5 years ago

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.

0
Would you make it a free model so we can see it? moo1210 587 — 5y
0
Edited my answer and fixed it should work now. moo1210 587 — 5y

2 answers

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

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.

0
Way better answer then mine, also the adornee worked for me so uhh :hyperthink: moo1210 587 — 5y
0
lol, not for me, it might have loaded faster on your computer though SerpentineKing 3885 — 5y
Ad
Log in to vote
1
Answered by
moo1210 587 Moderation Voter
5 years ago
Edited 5 years ago

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

0
Oof if you add it in the suface GUI it breaks hold on editing my answer. moo1210 587 — 5y

Answer this question