-- 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
-- Fly variables local flying = false local speed = 50 local bodyVelocity = Instance.new("BodyVelocity") bodyVelocity.MaxForce = Vector3.new(1, 1, 1) * 1e5
-- Reset handling player.CharacterAdded:Connect(function(newChar) character = newChar humanoid = character:WaitForChild("Humanoid") rootPart = character:WaitForChild("HumanoidRootPart") flying = false noclip = false saveCollisionState() end)
-- Stop fly local function stopFly() if not flying then return end flying = false humanoid.PlatformStand = false bodyVelocity.Parent = nil end
local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local rootPart = character:WaitForChild("HumanoidRootPart")
-- NoClip + Fly Script for Roblox -- Press 'X' to toggle fly, 'C' to toggle noclip