-- Save original CanCollide state for all body parts local function saveCollisionState() for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") then originalCanCollide[part] = part.CanCollide end end end
-- Fly variables local flying = false local speed = 50 local bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.MaxForce = Vector3.new(1, 1, 1) * 1e5 roblox noclip and fly script
-- Toggle fly local function toggleFly() if flying then stopFly() else startFly() end end -- Save original CanCollide state for all body
-- Apply NoClip local function setNoclip(state) for _, part in ipairs(character:GetDescendants()) do if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then part.CanCollide = not state end end if state then rootPart.CanCollide = false else rootPart.CanCollide = true for part, original in pairs(originalCanCollide) do if part and part.Parent then part.CanCollide = original end end end end roblox noclip and fly script
-- Hotkey setup game:GetService("UserInputService").InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == Enum.KeyCode.X then toggleFly() elseif input.KeyCode == Enum.KeyCode.C then toggleNoclip() end end)