Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Ui = script:WaitForChild("MainGui") -- Your Gui Name Here
- script.Parent.Equipped:Connect(function()
- local ScreenGui = Ui:Clone()
- ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
- end)
- script.Parent.Unequipped:Connect(function()
- game.Players.LocalPlayer.PlayerGui:FindFirstChild(Ui.Name):Destroy()
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement