Apparently, this 3 line button click detector isn't working. Here's the code:
1 | script.Parent.MouseButton 1 Click:Connect( function () |
2 | print ( "Working" ) |
3 | end ) |
Note that the button is in game.Workspace.Part.SurfaceGui.Frame.Frame
Any help will be appreciated!
Insert a ScreenGUI
in StarterGui
then a TextButton
in The ScreenGUI
Then put this code in...
1 | script.Parent.MouseButton 1 Click:Connect( function () |
2 | print (“Yay the script is working now”) |
3 | else |
4 | print (“Awww man it’s not working”) |
5 | end |
6 | end ) |