GUI

0

  1. Add ScreenGui to StarterGui
    • rename it to MainGui etc
  2. Add TextButton to ScreenGui
  3. 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

  • 0 posts
  • 0 subtopics
  • 3 months ago by vince