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!
Insert a ScreenGUI
in StarterGui
then a TextButton
in The ScreenGUI
Then put this code in...
script.Parent.MouseButton1Click:Connect(function() print(“Yay the script is working now”) else print(“Awww man it’s not working”) end end)