Advertisement
Anukun_Lucifer

Equipped GUI Script

Feb 22nd, 2023
1,674
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | Gaming | 0 0
  1. local Ui = script:WaitForChild("MainGui") -- Your Gui Name Here
  2.  
  3. script.Parent.Equipped:Connect(function()
  4.     local ScreenGui = Ui:Clone()
  5.     ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  6. end)
  7.  
  8. script.Parent.Unequipped:Connect(function()
  9.     game.Players.LocalPlayer.PlayerGui:FindFirstChild(Ui.Name):Destroy()
  10. end)
Tags: Roblox lua Gui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement