local Button = script.Parent
Button.MouseButton1Up:Connect(function()
print("yes")
end)
Inside of a scrolling gui, folder. Its also inside of a part surface gui, yes the surface gui adornee is the part. It doesnt even detect being clicked by a player. The script is a SCRIPT not local script.
The button is clickable, I don't know why it doesnt detect it being clicked.

5 comments
Sorry Instead of wait I mean print("yes")
Nothing wrong with the code, are you able to post a screenshot of the hierarchy?
yes
https://imgur.com/gallery/UyoCqrl
Have you tried testing it outside of studio or in the test mode? Also, don't use a local script- they don't run in the workspace