Apparently, this 3 line button click detector isn't working. Here's the code:
script.Parent.MouseButton1Click:Connect(function()
print("Working")
end)
Note that the button is in game.Workspace.Part.SurfaceGui.Frame.Frame
Any help will be appreciated!

4 comments
is this a localscript? in that case localscripts cannot run in the workspace.
Oh ok, so would you have any advice on how to make it work?
Put it somewhere in the client, for example the StarterGui.
Oh got it! Thanks!