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

Surface GUI can't be clicked?

Asked by
Smunkey 95
7 years ago

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

Log in to vote
1
Answered by 7 years ago

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.

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. MrLonely1221 701 — 7y
0
the adornee option is blanked out Smunkey 95 — 7y
0
You have to use the command line to set it MrLonely1221 701 — 7y
0
do you mean i need to put a script in the GUI that moves it to the brick? Smunkey 95 — 7y
View all comments (12 more)
0
You can either do that, or if you go into View in Studio and select Command bar and then type it out there. MrLonely1221 701 — 7y
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? Smunkey 95 — 7y
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 Smunkey 95 — 7y
0
? MrLonely1221 701 — 7y
0
You know you select something and it gets a blue box? When I select it, it doesn't get a blue box. Smunkey 95 — 7y
0
Can I come in game and see? MrLonely1221 701 — 7y
0
absolutely Smunkey 95 — 7y
0
isn't there something like a multiplayer studio or whatever? Smunkey 95 — 7y
0
Team creatE? MrLonely1221 701 — 7y
0
I invited you Smunkey 95 — 7y
0
What's the name of the place? MrLonely1221 701 — 7y
Ad

Answer this question