GUI
https://www.lukeko.com/33/gui 0- Add ScreenGui to StarterGui
- rename it to MainGui etc
- Add TextButton to ScreenGui
- Add LocalScript to ScreenGui
StarterGui/MainGui/LocalScript
local button = script.Parent.TextButton
button.MouseButton1Up:Connect(function()
print("button pressed")
end)
Instead of TextButton
you can also use ImageButton
. Or add an ImageLabel
to the TextButton
Tutorials are available at https://www.youtube.com/playlist?list=PLhieaQmOk7nK9ob348Yc_PTcIyHjDCnem