Roblox Lua Wiki
Advertisement

A text button opens something if it’s clicked.

Here are thing you need to know before you script.

  • MouseButton1Up - Fires when user releases their left click.
  • MouseButton1Down - Fires when user presses their left click.
  • MouseButton1Click - Fires when user fully clicks their left click.
  • MouseButton2Up - Same as MB1U but it fires when user presses right click.
  • MouseButton2Down - Same as MB1D but fires when user presses right click.
  • MouseButton2Click - Same as MB1C but fires when fully right clicked.

Insert a LocalScript and type what this image says:

WARNING: This script might be outdated.

Advertisement