
Key RequiredUniversal

local Players = game:GetService("Players")
local PhysicsService = game:GetService("PhysicsService")
pcall(function()
PhysicsService:CreateCollisionsGroup("NoClip")
end)
PhysicsService:CollisionGroupSetCollidable("NoClip", "Default", false)
local function setNoClip(character, enabled)
for _, part in ipairs(character:GetDescendants()) do
if part:IsA("BasePart") then
if enabled then
PhysicsService:SetPartCollisionGroup(part, "NoClip")
else
PhysicsService:SetPartCollisionGroup(part, "Default")
end
end
end
end
Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
wait(1)
local noclipEnabled = true
setNoClip(character, noclipEnabled)
end)
end)No comments yet for this script.



