RoScripter

Menu Gui Tool

Jan 23rd, 2022 (edited)
1,069
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local Player = game.Players.LocalPlayer
  2. local PlayerGui = Player.PlayerGui
  3.  
  4. local MenuTool = script.Parent
  5. local MenuGui = PlayerGui:WaitForChild("MenuGui")
  6.  
  7. MenuGui.Enabled = false
  8.  
  9. MenuTool.Equipped:Connect(function()
  10.     MenuGui.Enabled = true
  11. end)
  12.  
  13. MenuTool.Unequipped:Connect(function()
  14.     MenuGui.Enabled = false
  15. end)
RAW Paste Data Copied