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

Surface GUI can't be clicked?

I have a surface GUI but I can't click on the image button in it.

I have it set up as Brick Surface Gui / sound Frame Image Button script I don't think the problem is the script which is

local sound = script.Parent.Parent.Parent.Parent.Sound
function onClicked()

sound:Play()

end

script.Parent.MouseButton1Click:connect(onClicked)

I have a very similar script in a screen GUI that teleports you instead of making a sound and it works perfectly.

All frames, buttons, and GUIs are enabled. There are multiple frames in the GUI with the same size that all overlap each other. None of the buttons overlap each other. All buttons are active and selectable. All frames are selectable and have clip-descendants enabled.

Any ideas why I can't click the image button?

1 answer

✓ Accepted answer

I believe I know the solution to your problem, is the SurfaceGui in StarterGui with the Adornee property set to the brick you want it to show on? In order to play a sound the script needs to be a LocalScript.

16 comments

0

Put the SurfaceGui in starterGui and use the command line to set the Adornee property to the part that you want to have the SurfaceGui on.

0

the adornee option is blanked out

0

You have to use the command line to set it

0

do you mean i need to put a script in the GUI that moves it to the brick?

0

You can either do that, or if you go into View in Studio and select Command bar and then type it out there.

0

I was able to attach to the brick with it still being in the player GUI, but I still can't click the button?

0

even weirder is that when I select the surface GUI it doesn't get that neat little blue box that shows it's connected

0

?

0

You know you select something and it gets a blue box? When I select it, it doesn't get a blue box.

0

Can I come in game and see?

0

absolutely

0

isn't there something like a multiplayer studio or whatever?

0

Team creatE?

0

I invited you

0

What's the name of the place?

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