RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Noclip script"
-- local script local player = game.Players.LocalPlayer local mouse = player:GetMouse() local noclip = false function noclipToggle() noclip = not noclip if noclip then player.Character.Humanoid:ChangeState(11) else player.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end end mouse.KeyDown:connect(function(key) if key == "e" then noclipToggle() end end) game:GetService("RunService").RenderStepped:connect(function() if noclip then local delta = Vector3.new(0, 0, 0) if mouse.Target then delta = mouse.Hit.p - player.Character.HumanoidRootPart.Position end local camera = game.Workspace.CurrentCamera local newLook = camera.CFrame.lookVector local newPos = player.Character.HumanoidRootPart.Position + (newLook * delta.magnitude) player.Character.HumanoidRootPart.CFrame = CFrame.new(newPos, mouse.Hit.p) end end)