None of the buttons work on this surface gui!

right here i have a cat. i tested with a screengui, and this little fella should make a meow sound when you click it. but, when i put the button into the surface gui, none of that happens. i even made little growing/shrinking tween functions for hovering on and off, but none of those are triggering, so i know the button just isn’t picking up at all? what’s going on?

again. works perfectly fine with a screengui, no errors. it’s just for some reason the button doesn’t work at all on the surfacegui. any ideas why? also, there’s no errors when it’s on the surfacegui either.

here’s the instance hierarchy if that’s any help.
image

i tried setting the zindex to 3 too, but that did nothing. also, none of the other buttons in the first screenshot i showed you work either.

Try a server script instead?

dang it, i keep forgetting that you have to use server scripts with a client runcontext instead of a local script itself…

thanks for the help!!

Does it work? Don’t think I’ve ever scripted a button with a Billboard or Surface GUI, so I wouldn’t know.

yeah it works. thanks!

charcharcharcharchar

Not neccessarily.
If you move the surface GUI to StarterGUI, then set the Adornee of the GUI to the part, then I believe that it should still work as you wanted, while still being a local script!

(Also, make sure to mark a solution for your post, in this case ModernDev’s reply)

Alright, no worries, glad I could help!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.