Advertisement
Guest User

Ctrl Click Delete Undo

a guest
Dec 10th, 2019
1,236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. local Plr = game:GetService("Players").LocalPlayer
  2. local Mouse = Plr:GetMouse()
  3.  
  4. Mouse.Button1Down:connect(function()
  5. if not game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.LeftControl) then return end
  6. if not Mouse.Target then return end
  7. if Mouse.Target.Transparency == 0 then
  8. Mouse.Target.Transparency = 1
  9. Mouse.Target.CanCollide = false
  10. elseif Mouse.Target.Transparency == 1 then
  11. Mouse.Target.Transparency = 0
  12. Mouse.Target.CanCollide = true
  13. end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement