Advertisement
YESSIR455bb

NOCLIP SCRIPT

Apr 29th, 2025
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. local character = player.Character or player.CharacterAdded:Wait()
  3. local RunService = game:GetService("RunService")
  4.  
  5. -- Function to disable collision for all parts of the player's character
  6. local function disableCollisions()
  7. if character and character:FindFirstChild("HumanoidRootPart") then
  8. for _, part in pairs(character:GetChildren()) do
  9. if part:IsA("BasePart") then
  10. part.CanCollide = false -- Disable collision
  11. end
  12. end
  13. end
  14. end
  15.  
  16. -- Update the collision settings when the character is added
  17. player.CharacterAdded:Connect(function(newCharacter)
  18. character = newCharacter
  19. disableCollisions()
  20. end)
  21.  
  22. -- Continuously disable collision for the player's character (if it changes or respawns)
  23. RunService.RenderStepped:Connect(function()
  24. if character and character:FindFirstChild("HumanoidRootPart") then
  25. disableCollisions()
  26. end
  27. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement