Dabrazilliandev

Fe noclip

Mar 24th, 2023
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. local Noclip = nil
  2. local Clip = nil
  3.  
  4. function noclip()
  5. Clip = false
  6. local function Nocl()
  7. if Clip == false and game.Players.LocalPlayer.Character ~= nil then
  8. for _,v in pairs(game.Players.LocalPlayer.Character:GetDescendants()) do
  9. if v:IsA('BasePart') and v.CanCollide and v.Name ~= floatName then
  10. v.CanCollide = false
  11. end
  12. end
  13. end
  14. wait(0.21) -- basic optimization
  15. end
  16. Noclip = game:GetService('RunService').Stepped:Connect(Nocl)
  17. end
  18.  
  19. function clip()
  20. if Noclip then Noclip:Disconnect() end
  21. Clip = true
  22. end
  23.  
  24. noclip() -- to toggle noclip() and clip()
Add Comment
Please, Sign In to add comment