Advertisement
CAT_SUS

nc.lua

Jul 14th, 2023
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.09 KB | None | 0 0
  1. --[[Roblox Game Noclip]]
  2.  
  3. local NAME = tostring(tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9))..tostring(math.random(0,9)))
  4. local plr = game:GetService('Players').LocalPlayer
  5.  
  6. _G[NAME] = false
  7.  
  8. local function TOGGLE(value)
  9.     if value then
  10.         for i,v : BasePart | UnionOperation in ipairs(plr.Character:GetChildren()) do
  11.             if v:isA('BasePart') or v:isA('UnionOperation') then
  12.                 if v.Name == tostring('Head') or v.Name == tostring('Torso') or v.Name == tostring('UpperTorso') or v.Name == tostring('LowerTorso') then
  13.                     v.CanCollide = false
  14.                 end
  15.             end
  16.         end
  17.     else
  18.         for i,v : BasePart | UnionOperation in ipairs(plr.Character:GetChildren()) do
  19.             if v:isA('BasePart') or v:isA('UnionOperation') then
  20.                 if v.Name == tostring('Head') or v.Name == tostring('Torso') or v.Name == tostring('UpperTorso') or v.Name == tostring('LowerTorso') then
  21.                     v.CanCollide = true
  22.                 end
  23.             end
  24.         end
  25.     end
  26. end
  27.  
  28. game:GetService('RunService').Heartbeat:Connect(function()
  29.     if plr.Character then
  30.         TOGGLE(true)
  31.     else
  32.         TOGGLE(false)
  33.     end
  34. end)
  35.  
  36. return NAME;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement