Advertisement
idontpostcracks

noclip

May 15th, 2022
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.04 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. if plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
  3.     getgenv().r6noclip = true
  4.                 game:GetService("RunService").Stepped:Connect(function()
  5. if getgenv().r6noclip == true then
  6.      game.Players.LocalPlayer.Character.Head.CanCollide = false
  7. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  8. game.Players.LocalPlayer.Character["Left Leg"].CanCollide = false
  9. game.Players.LocalPlayer.Character["Right Leg"].CanCollide = false
  10. end
  11. end)
  12. end
  13.  
  14. if plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  15.     getgenv().r15noclip = true
  16.                 game:GetService("RunService").Stepped:Connect(function()
  17. if getgenv().r15noclip == true then
  18.     Clip = false
  19.     if Clip == false and plr.Character ~= nil then
  20.             for i,v in pairs(plr.Character:GetDescendants()) do
  21.                 if v:IsA("BasePart") and v.CanCollide == true and v.Name ~= floatName then
  22.                     v.CanCollide = false
  23.                 end
  24.             end
  25.     end
  26. end
  27. end)
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement