Advertisement
VenoxComeback

Untitled

Mar 17th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. getgenv().Players = game:GetService'Players'
  2. getgenv().Host = Players.LocalPlayer
  3. getgenv().RunService = game:GetService'RunService'
  4. getgenv().ContextActionService = game:GetService'ContextActionService'
  5.  
  6. local Noclip = true
  7. local NoclipKey = 'N' -- Change your key here
  8.  
  9. RunService.RenderStepped:Connect(function()
  10. if Noclip then
  11. for _, v in pairs(Host.Character:GetDescendants()) do
  12. if v:IsA'BasePart' and v.CanCollide then
  13. v.CanCollide = false
  14. end
  15. end
  16. else
  17. for _, v in pairs(Host.Character:GetDescendants()) do
  18. if v:IsA'BasePart' and not v.CanCollide then
  19. v.CanCollide = true
  20. end
  21. end
  22. end
  23. end)
  24.  
  25. function Noclipping(ActionName: string, Properties: EnumItem)
  26. if ActionName == 'Noclip' then
  27. if not Properties or Properties == Enum.UserInputState.Begin then
  28. Noclip = not Noclip
  29. end
  30. end
  31. end
  32.  
  33. ContextActionService:BindAction('Noclip', Noclipping, true, Enum.KeyCode[NoclipKey])
  34.  
Tags: nclip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement