Advertisement
MaxproGlitcher

script alt pour suprimer .lua by Max

Sep 20th, 2022 (edited)
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. game:GetService("StarterGui"):SetCore("SendNotification",{
  2. Title = " Script Tool",
  3. Text = "Script a ÊtÊ executer",
  4. Icon = "rbxassetid://11823384169",
  5. Duration = 15
  6. })
  7.  
  8. local UserInputService = game:GetService("UserInputService")
  9. local Mouse = game:GetService("Players").LocalPlayer:GetMouse()
  10.  
  11. UserInputService.InputBegan:Connect(function(input, processed)
  12. if processed then -- This is called "guarding": we can skip making more indents by checking a requirement beforehand (like usual) but also returning early, so it's much easier to read
  13. return
  14. end
  15. -- We SHOULDNT guard this, since the check is much more specific
  16. if UserInputService:IsKeyDown(Enum.KeyCode.G) then
  17. pcall(function()
  18. Mouse.Target:Destroy()
  19. end)
  20. end
  21. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement