Advertisement
Joriangames

Open/Close script Minimap tutorial

Jan 5th, 2024
676
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. ---Watch my tutorial to understand everything: https://youtu.be/YRQoi88DY3I
  2. local map = script.Parent.Parent.MinimapFrame
  3. local button = script.Parent
  4.  
  5. button.MouseButton1Click:Connect(function()
  6.     if map.Visible == true then
  7.         map.Visible = false
  8.         button.Text = "Open"
  9.     else
  10.         map.Visible = true
  11.         button.Text = "Close"
  12.     end
  13. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement