I am fairly new to scripting and I got this script from off of the ROBLOX wiki and I wanted to just see if it worked so I just made it print something. All the script does is when the player clicks the TextButton in the SurfaceGui it prints something to output but it doesn't do any of that...
local textButton = script.Parent textButton.MouseButton1Down:connect(function() print("Clickity") end)
Make sure it's a localscript, and that the gui is in StarterGui