RoScripter

Menu Gui Tool

Jan 23rd, 2022 (edited)
2,361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  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)
Add Comment
Please, Sign In to add comment