Advertisement
FilterYT

egames

Nov 16th, 2019
14,157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local lp = game:service'Players'.LocalPlayer;
  2. local mouse = lp:GetMouse();
  3.  
  4. mouse.KeyDown:Connect(function(key)
  5. if key == "v" then
  6. v = true;
  7. end
  8. end)
  9.  
  10. mouse.KeyUp:Connect(function(key)
  11. if key == "v" then
  12. v = false;
  13. end
  14. end)
  15.  
  16. game:getService("RunService").Stepped:Connect(function()
  17. if v then
  18. if game:service'Players'.LocalPlayer.Character then
  19. for i,v in pairs(game:service'Players'.LocalPlayer.Character:GetChildren()) do
  20. if v:IsA'BasePart' then
  21. v.CanCollide = false;
  22. end
  23. end
  24. end
  25. end
  26. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement