pcall(function() local networkPause = game:GetService("CoreGui").RobloxGui:FindFirstChild("CoreScripts/NetworkPause") if networkPause then networkPause:Destroy() end end) local Players = game:GetService("Players") local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local Workspace = game:GetService("Workspace") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") local camera = Workspace.CurrentCamera local isBhopEnabled = false local isAntiNoclipEnabled = false local isMoveJumpEnabled = false local isMoreExpanded = false local strafeMultiplier = 28 local MAX_BONUS_SPEED = math.huge local BASE_AIR_ACCEL = 8 local DECAY_RATE = 7 local GROUND_DECEL_DELAY = 0.2 local isFootBlockEnabled = false local FOOT_BLOCK_SIZE = Vector3.new(30, 30, 30) local FOOT_BLOCK_Y_OFFSET = 0 local COMPACT_FRAME_HEIGHT = 128 local EXPANDED_FRAME_HEIGHT = 230 local screenGui = Instance.new("ScreenGui") screenGui.Name = "BhopStrafeGui" screenGui.ResetOnSpawn = false screenGui.Parent = playerGui local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 200, 0, COMPACT_FRAME_HEIGHT) mainFrame.Position = UDim2.new(0.05, 0, 0.25, 0) mainFrame.BackgroundColor3 = Color3.fromRGB(26, 26, 32) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Parent = screenGui local uiCorner = Instance.new("UICorner") uiCorner.CornerRadius = UDim.new(0, 10) uiCorner.Parent = mainFrame local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(0.75, 0, 0, 26) titleLabel.Position = UDim2.new(0.05, 0, 0, 2) titleLabel.BackgroundTransparency = 1 titleLabel.Text = "⚡ Bhop Strafe" titleLabel.TextColor3 = Color3.fromRGB(220, 220, 235) titleLabel.Font = Enum.Font.GothamBold titleLabel.TextSize = 13 titleLabel.TextXAlignment = Enum.TextXAlignment.Left titleLabel.Parent = mainFrame local hideButton = Instance.new("TextButton") hideButton.Size = UDim2.new(0, 24, 0, 22) hideButton.Position = UDim2.new(1, -29, 0, 4) hideButton.BackgroundColor3 = Color3.fromRGB(45, 45, 55) hideButton.Text = "—" hideButton.TextColor3 = Color3.fromRGB(220, 220, 235) hideButton.Font = Enum.Font.GothamBold hideButton.TextSize = 12 hideButton.Parent = mainFrame local hideCorner = Instance.new("UICorner") hideCorner.CornerRadius = UDim.new(0, 6) hideCorner.Parent = hideButton local showButton = Instance.new("TextButton") showButton.Name = "ShowGuiButton" showButton.Size = UDim2.new(0, 95, 0, 30) showButton.Position = UDim2.new(0.05, 0, 0.25, 0) showButton.BackgroundColor3 = Color3.fromRGB(26, 26, 32) showButton.Text = "⚡ Show Bhop" showButton.TextColor3 = Color3.fromRGB(130, 210, 255) showButton.Font = Enum.Font.GothamBold showButton.TextSize = 12 showButton.Visible = false showButton.Active = true showButton.Parent = screenGui local showCorner = Instance.new("UICorner") showCorner.CornerRadius = UDim.new(0, 8) showCorner.Parent = showButton local multLabel = Instance.new("TextLabel") multLabel.Size = UDim2.new(0.55, 0, 0, 24) multLabel.Position = UDim2.new(0.06, 0, 0, 32) multLabel.BackgroundTransparency = 1 multLabel.Text = "Strafe Mult:" multLabel.TextColor3 = Color3.fromRGB(190, 190, 205) multLabel.Font = Enum.Font.GothamMedium multLabel.TextSize = 12 multLabel.TextXAlignment = Enum.TextXAlignment.Left multLabel.Parent = mainFrame local multBox = Instance.new("TextBox") multBox.Size = UDim2.new(0.32, 0, 0, 24) multBox.Position = UDim2.new(0.62, 0, 0, 32) multBox.BackgroundColor3 = Color3.fromRGB(40, 40, 50) multBox.Text = tostring(strafeMultiplier) multBox.PlaceholderText = "Số..." multBox.TextColor3 = Color3.fromRGB(255, 255, 255) multBox.Font = Enum.Font.GothamBold multBox.TextSize = 12 multBox.ClearTextOnFocus = false multBox.Parent = mainFrame local boxCorner = Instance.new("UICorner") boxCorner.CornerRadius = UDim.new(0, 6) boxCorner.Parent = multBox local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(0.55, 0, 0, 28) toggleButton.Position = UDim2.new(0.06, 0, 0, 62) toggleButton.BackgroundColor3 = Color3.fromRGB(210, 60, 60) toggleButton.Text = "Bhop: OFF" toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) toggleButton.Font = Enum.Font.GothamBold toggleButton.TextSize = 12 toggleButton.Parent = mainFrame local btnCorner = Instance.new("UICorner") btnCorner.CornerRadius = UDim.new(0, 8) btnCorner.Parent = toggleButton local moreButton = Instance.new("TextButton") moreButton.Size = UDim2.new(0.30, 0, 0, 28) moreButton.Position = UDim2.new(0.64, 0, 0, 62) moreButton.BackgroundColor3 = Color3.fromRGB(52, 52, 66) moreButton.Text = "More" moreButton.TextColor3 = Color3.fromRGB(220, 220, 240) moreButton.Font = Enum.Font.GothamBold moreButton.TextSize = 12 moreButton.Parent = mainFrame local moreCorner = Instance.new("UICorner") moreCorner.CornerRadius = UDim.new(0, 8) moreCorner.Parent = moreButton local blockToggleButton = Instance.new("TextButton") blockToggleButton.Size = UDim2.new(0.88, 0, 0, 28) blockToggleButton.Position = UDim2.new(0.06, 0, 0, 96) blockToggleButton.BackgroundColor3 = Color3.fromRGB(210, 60, 60) blockToggleButton.Text = "Follow Obj: OFF" blockToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) blockToggleButton.Font = Enum.Font.GothamBold blockToggleButton.TextSize = 12 blockToggleButton.Visible = false blockToggleButton.Parent = mainFrame local blockBtnCorner = Instance.new("UICorner") blockBtnCorner.CornerRadius = UDim.new(0, 8) blockBtnCorner.Parent = blockToggleButton local antiNoclipButton = Instance.new("TextButton") antiNoclipButton.Size = UDim2.new(0.88, 0, 0, 28) antiNoclipButton.Position = UDim2.new(0.06, 0, 0, 130) antiNoclipButton.BackgroundColor3 = Color3.fromRGB(210, 60, 60) antiNoclipButton.Text = "Anti Noclip: OFF" antiNoclipButton.TextColor3 = Color3.fromRGB(255, 255, 255) antiNoclipButton.Font = Enum.Font.GothamBold antiNoclipButton.TextSize = 12 antiNoclipButton.Visible = false antiNoclipButton.Parent = mainFrame local antiNoclipCorner = Instance.new("UICorner") antiNoclipCorner.CornerRadius = UDim.new(0, 8) antiNoclipCorner.Parent = antiNoclipButton local moveJumpToggleButton = Instance.new("TextButton") moveJumpToggleButton.Size = UDim2.new(0.88, 0, 0, 28) moveJumpToggleButton.Position = UDim2.new(0.06, 0, 0, 164) moveJumpToggleButton.BackgroundColor3 = Color3.fromRGB(210, 60, 60) moveJumpToggleButton.Text = "Move Jump: OFF" moveJumpToggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) moveJumpToggleButton.Font = Enum.Font.GothamBold moveJumpToggleButton.TextSize = 12 moveJumpToggleButton.Visible = false moveJumpToggleButton.Parent = mainFrame local moveJumpBtnCorner = Instance.new("UICorner") moveJumpBtnCorner.CornerRadius = UDim.new(0, 8) moveJumpBtnCorner.Parent = moveJumpToggleButton local customJumpButton = Instance.new("TextButton") customJumpButton.Name = "CustomJumpButton" customJumpButton.AnchorPoint = Vector2.new(0.5, 0.5) customJumpButton.Size = UDim2.new(0, 74, 0, 74) customJumpButton.Position = UDim2.new(0.85, 0, 0.62, 0) customJumpButton.BackgroundColor3 = Color3.fromRGB(32, 32, 42) customJumpButton.BackgroundTransparency = 0.25 customJumpButton.Text = "⬆ Jump" customJumpButton.TextColor3 = Color3.fromRGB(235, 240, 255) customJumpButton.Font = Enum.Font.GothamBold customJumpButton.TextSize = 13 customJumpButton.ZIndex = 10 customJumpButton.Active = true customJumpButton.Parent = screenGui local customJumpCorner = Instance.new("UICorner") customJumpCorner.CornerRadius = UDim.new(1, 0) customJumpCorner.Parent = customJumpButton local customJumpStroke = Instance.new("UIStroke") customJumpStroke.Color = Color3.fromRGB(110, 180, 255) customJumpStroke.Thickness = 2 customJumpStroke.Parent = customJumpButton local function applyMoreLayout() blockToggleButton.Visible = isMoreExpanded antiNoclipButton.Visible = isMoreExpanded moveJumpToggleButton.Visible = isMoreExpanded if isMoreExpanded then mainFrame.Size = UDim2.new(0, 200, 0, EXPANDED_FRAME_HEIGHT) moreButton.Text = "Less" else mainFrame.Size = UDim2.new(0, 200, 0, COMPACT_FRAME_HEIGHT) moreButton.Text = "More" end end moreButton.MouseButton1Click:Connect(function() isMoreExpanded = not isMoreExpanded applyMoreLayout() end) local DRAG_THRESHOLD = 18 local function isPointInsideGui(guiObj, screenPos) if not guiObj or not guiObj.Visible then return false end local topLeft = guiObj.AbsolutePosition local size = guiObj.AbsoluteSize return screenPos.X >= topLeft.X and screenPos.X <= topLeft.X + size.X and screenPos.Y >= topLeft.Y and screenPos.Y <= topLeft.Y + size.Y end local function isTouchOnInteractiveControl(frameObj, screenPos) if frameObj == multBox or frameObj == hideButton or frameObj == toggleButton or frameObj == moreButton or frameObj == blockToggleButton or frameObj == antiNoclipButton or frameObj == moveJumpToggleButton then return true end for _, child in ipairs(frameObj:GetDescendants()) do if (child:IsA("TextButton") or child:IsA("TextBox")) and isPointInsideGui(child, screenPos) then return true end end return false end local function makeDraggable(guiObject, ignoreInteractiveChildren, canDragPredicate) local activeInput = nil local dragging = false local dragStart, startPos guiObject.InputBegan:Connect(function(input) if activeInput ~= nil then return end if canDragPredicate and not canDragPredicate() then return end if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then if ignoreInteractiveChildren and isTouchOnInteractiveControl(guiObject, input.Position) then return end activeInput = input dragging = false dragStart = input.Position startPos = guiObject.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End or input.UserInputState == Enum.UserInputState.Cancel then if input == activeInput then activeInput = nil dragging = false end end end) end end) guiObject.InputChanged:Connect(function(input) if input ~= activeInput then return end if canDragPredicate and not canDragPredicate() then activeInput = nil dragging = false return end if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then local delta = input.Position - dragStart if not dragging and delta.Magnitude >= DRAG_THRESHOLD then dragging = true end if dragging then guiObject.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end end end) end makeDraggable(mainFrame, true, nil) makeDraggable(showButton, false, nil) makeDraggable(customJumpButton, false, function() return isMoveJumpEnabled end) local function updateMoveJumpUI() if isMoveJumpEnabled then moveJumpToggleButton.Text = "Move Jump: ON" moveJumpToggleButton.BackgroundColor3 = Color3.fromRGB(50, 190, 95) customJumpStroke.Color = Color3.fromRGB(255, 210, 75) else moveJumpToggleButton.Text = "Move Jump: OFF" moveJumpToggleButton.BackgroundColor3 = Color3.fromRGB(210, 60, 60) customJumpStroke.Color = Color3.fromRGB(110, 180, 255) end end moveJumpToggleButton.MouseButton1Click:Connect(function() isMoveJumpEnabled = not isMoveJumpEnabled updateMoveJumpUI() end) local function setGuiVisible(visible) mainFrame.Visible = visible showButton.Visible = not visible end hideButton.MouseButton1Click:Connect(function() setGuiVisible(false) end) showButton.MouseButton1Click:Connect(function() setGuiVisible(true) end) UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.RightShift then setGuiVisible(not mainFrame.Visible) end end) local footBlock = Instance.new("Part") footBlock.Name = "FollowObjBlock30x30x30" footBlock.Size = FOOT_BLOCK_SIZE footBlock.Anchored = true footBlock.CanCollide = false footBlock.Material = Enum.Material.Plastic footBlock.Color = Color3.fromRGB(163, 162, 165) footBlock.Transparency = 1 footBlock.Parent = nil local lockedY = nil local function getCharacterFootY(rootPart, humanoid) local hipHeight = (humanoid and humanoid.HipHeight > 0) and humanoid.HipHeight or 2 local halfRootY = rootPart.Size.Y * 0.5 local topSurfaceY = rootPart.Position.Y - hipHeight - halfRootY + FOOT_BLOCK_Y_OFFSET return topSurfaceY - (FOOT_BLOCK_SIZE.Y * 0.5) end local function syncFootBlock(rootPart, humanoid) if not rootPart then return end if lockedY == nil then lockedY = getCharacterFootY(rootPart, humanoid) end footBlock.CFrame = CFrame.new(rootPart.Position.X, lockedY, rootPart.Position.Z) end local function updateFootBlockUI() if isFootBlockEnabled then blockToggleButton.Text = "Follow Obj: ON" blockToggleButton.BackgroundColor3 = Color3.fromRGB(50, 190, 95) footBlock.CanCollide = true footBlock.Transparency = 0.35 footBlock.Parent = Workspace local char = player.Character local hum = char and char:FindFirstChildOfClass("Humanoid") local hrp = char and char:FindFirstChild("HumanoidRootPart") lockedY = nil syncFootBlock(hrp, hum) else blockToggleButton.Text = "Follow Obj: OFF" blockToggleButton.BackgroundColor3 = Color3.fromRGB(210, 60, 60) lockedY = nil footBlock.CanCollide = false footBlock.Transparency = 1 footBlock.Parent = nil end end blockToggleButton.MouseButton1Click:Connect(function() isFootBlockEnabled = not isFootBlockEnabled updateFootBlockUI() end) local function updateAntiNoclipUI() if isAntiNoclipEnabled then antiNoclipButton.Text = "Anti Noclip: ON" antiNoclipButton.BackgroundColor3 = Color3.fromRGB(50, 190, 95) else antiNoclipButton.Text = "Anti Noclip: OFF" antiNoclipButton.BackgroundColor3 = Color3.fromRGB(210, 60, 60) end end antiNoclipButton.MouseButton1Click:Connect(function() isAntiNoclipEnabled = not isAntiNoclipEnabled updateAntiNoclipUI() end) local function getCameraYawBasis() local activeCam = Workspace.CurrentCamera if not activeCam then return Vector3.zAxis, Vector3.xAxis end local look = activeCam.CFrame.LookVector local flatForward = Vector3.new(look.X, 0, look.Z) if flatForward.Magnitude < 1e-4 then return Vector3.zAxis, Vector3.xAxis end local forward = flatForward.Unit local right = forward:Cross(Vector3.yAxis).Unit return forward, right end local function buildCameraYawCFrame(pos) local forward, right = getCameraYawBasis() return CFrame.fromMatrix(pos, right, Vector3.yAxis, -forward) end local function rotateCharacterToCameraCFrame(rootPart, targetPos) if not rootPart then return end local pos = targetPos or rootPart.Position rootPart.CFrame = buildCameraYawCFrame(pos) end local function applyAntiNoclip(character, rootPart, moveDirVec, stepDist) if not character or not rootPart or stepDist <= 0 then return rootPart.Position, false end local dirUnit = moveDirVec.Unit if not isAntiNoclipEnabled then return rootPart.Position + (dirUnit * stepDist), false end local playerRadius = math.max(rootPart.Size.X, rootPart.Size.Z) * 0.5 + 1.25 local rayParams = RaycastParams.new() rayParams.FilterType = Enum.RaycastFilterType.Exclude rayParams.FilterDescendantsInstances = {character, footBlock} local origins = { rootPart.Position, rootPart.Position + Vector3.new(0, 1.5, 0), rootPart.Position - Vector3.new(0, 1.5, 0), } local closestHitDist = nil for _, origin in ipairs(origins) do local result = Workspace:Raycast(origin, dirUnit * (stepDist + playerRadius), rayParams) if result and result.Instance and result.Instance.CanCollide then local dist = (result.Position - origin).Magnitude if closestHitDist == nil or dist < closestHitDist then closestHitDist = dist end end end if closestHitDist ~= nil then local safeDist = math.max(0, closestHitDist - playerRadius) return rootPart.Position + (dirUnit * safeDist), true end return rootPart.Position + (dirUnit * stepDist), false end local function applyShiftLockState(enabled) local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local rootPart = character and character:FindFirstChild("HumanoidRootPart") if humanoid then humanoid.AutoRotate = not enabled humanoid.CameraOffset = Vector3.zero end if enabled and rootPart then rotateCharacterToCameraCFrame(rootPart) end end local currentBonus = 0 local groundTimer = 0 local isHoldingJump = false local isCustomJumpHeld = false local lastCamLook = camera.CFrame.LookVector local function isAnyJumpHeld() return isHoldingJump or isCustomJumpHeld end local function updateCustomJumpVisual() if isCustomJumpHeld then customJumpButton.BackgroundColor3 = Color3.fromRGB(50, 190, 95) else customJumpButton.BackgroundColor3 = Color3.fromRGB(32, 32, 42) end end local function setCustomJumpHeld(held) isCustomJumpHeld = held updateCustomJumpVisual() if not isAnyJumpHeld() then local char = player.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if hum then hum.Jump = false end end end customJumpButton.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then setCustomJumpHeld(true) end end) customJumpButton.InputEnded:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then setCustomJumpHeld(false) end end) customJumpButton.MouseButton1Up:Connect(function() setCustomJumpHeld(false) end) local function resetJumpHold() isHoldingJump = false isCustomJumpHeld = false updateCustomJumpVisual() local char = player.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if hum then hum.Jump = false end end multBox.FocusLost:Connect(function() local num = tonumber(multBox.Text) if num then strafeMultiplier = num multBox.Text = tostring(strafeMultiplier) else multBox.Text = tostring(strafeMultiplier) end end) local function updateToggleUI() if isBhopEnabled then toggleButton.Text = "Bhop: ON" toggleButton.BackgroundColor3 = Color3.fromRGB(50, 190, 95) applyShiftLockState(true) else toggleButton.Text = "Bhop: OFF" toggleButton.BackgroundColor3 = Color3.fromRGB(210, 60, 60) currentBonus = 0 groundTimer = 0 resetJumpHold() applyShiftLockState(false) end end toggleButton.MouseButton1Click:Connect(function() isBhopEnabled = not isBhopEnabled updateToggleUI() end) player.CharacterAdded:Connect(function(newCharacter) local hum = newCharacter:WaitForChild("Humanoid") local hrp = newCharacter:WaitForChild("HumanoidRootPart") groundTimer = 0 lockedY = nil resetJumpHold() hum.CameraOffset = Vector3.zero hum.AutoRotate = not isBhopEnabled if isBhopEnabled then rotateCharacterToCameraCFrame(hrp) end end) UserInputService.InputBegan:Connect(function(input, gameProcessed) if gameProcessed then return end if input.KeyCode == Enum.KeyCode.Space or input.KeyCode == Enum.KeyCode.ButtonA then isHoldingJump = true end end) UserInputService.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.Space or input.KeyCode == Enum.KeyCode.ButtonA then isHoldingJump = false if not isAnyJumpHeld() then local char = player.Character local hum = char and char:FindFirstChildOfClass("Humanoid") if hum then hum.Jump = false end end end end) local touchJumpConn = nil local function bindTouchJumpButton() if touchJumpConn then touchJumpConn:Disconnect() touchJumpConn = nil end local touchGui = playerGui:FindFirstChild("TouchGui") local jumpBtn = touchGui and touchGui:FindFirstChild("TouchControlFrame") and touchGui.TouchControlFrame:FindFirstChild("JumpButton") if jumpBtn and jumpBtn:IsA("GuiButton") then touchJumpConn = jumpBtn.InputEnded:Connect(function() if not UserInputService:IsKeyDown(Enum.KeyCode.Space) then isHoldingJump = false end end) end end task.spawn(function() bindTouchJumpButton() playerGui.ChildAdded:Connect(function(child) if child.Name == "TouchGui" then task.wait(0.2) bindTouchJumpButton() end end) end) local function getSignedCameraYawDelta() local activeCam = Workspace.CurrentCamera local currentLook = activeCam.CFrame.LookVector local flatLast = Vector3.new(lastCamLook.X, 0, lastCamLook.Z) local flatCurrent = Vector3.new(currentLook.X, 0, currentLook.Z) lastCamLook = currentLook if flatLast.Magnitude < 0.001 or flatCurrent.Magnitude < 0.001 then return 0 end local uLast = flatLast.Unit local uCurr = flatCurrent.Unit local dot = math.clamp(uLast:Dot(uCurr), -1, 1) local angle = math.acos(dot) local crossY = uLast:Cross(uCurr).Y if math.abs(crossY) < 1e-5 then return 0 end return crossY > 0 and angle or -angle end local function isMovingBackward(moveDir) local flatMove = Vector3.new(moveDir.X, 0, moveDir.Z) if flatMove.Magnitude <= 0.05 then return false end local camLook = Workspace.CurrentCamera.CFrame.LookVector local flatLook = Vector3.new(camLook.X, 0, camLook.Z) if flatLook.Magnitude < 0.001 then return false end local forwardDot = flatLook.Unit:Dot(flatMove.Unit) return forwardDot < -0.25 end local function getStrafeDirection(moveDir) local flatMove = Vector3.new(moveDir.X, 0, moveDir.Z) if flatMove.Magnitude <= 0.05 then return 0 end local rightVec = Workspace.CurrentCamera.CFrame.RightVector local flatRight = Vector3.new(rightVec.X, 0, rightVec.Z) if flatRight.Magnitude < 0.001 then return 0 end local strafeDot = flatRight.Unit:Dot(flatMove.Unit) if strafeDot < -0.25 then return 1 elseif strafeDot > 0.25 then return -1 end return 0 end local function decayBonus(bonus, delta) if bonus <= 0 then return 0 end local decayed = bonus * math.exp(-DECAY_RATE * delta) if decayed < 0.05 then return 0 end return decayed end local function applyHeldJump(humanoid, isGrounded) if not humanoid or humanoid.Health <= 0 then return end if humanoid.Sit or humanoid.PlatformStand then return end if isAnyJumpHeld() then humanoid.Jump = true if isGrounded then pcall(function() humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end) end end end RunService.Heartbeat:Connect(function(delta) local signedYaw = getSignedCameraYawDelta() local character = player.Character local humanoid = character and character:FindFirstChildOfClass("Humanoid") local rootPart = character and character:FindFirstChild("HumanoidRootPart") if not isBhopEnabled then currentBonus = 0 groundTimer = 0 if humanoid and isAnyJumpHeld() then applyHeldJump(humanoid, humanoid.FloorMaterial ~= Enum.Material.Air) end if isFootBlockEnabled and rootPart and humanoid and humanoid.Health > 0 then syncFootBlock(rootPart, humanoid) end return end if not humanoid or humanoid.Health <= 0 or not rootPart then currentBonus = 0 groundTimer = 0 return end if humanoid.AutoRotate then humanoid.AutoRotate = false end rotateCharacterToCameraCFrame(rootPart) local isGrounded = humanoid.FloorMaterial ~= Enum.Material.Air local moveDir = humanoid.MoveDirection local isMoving = moveDir.Magnitude > 0.05 local isBackward = isMovingBackward(moveDir) local strafeDir = getStrafeDirection(moveDir) applyHeldJump(humanoid, isGrounded) if isGrounded then groundTimer += delta else groundTimer = 0 end if not isMoving or isBackward then currentBonus = decayBonus(currentBonus, delta) elseif not isGrounded then local safeDelta = math.max(delta, 0.001) local yawSpeed = signedYaw / safeDelta if strafeDir ~= 0 then if yawSpeed * strafeDir > 0.05 then local angularSpeed = math.min(math.abs(yawSpeed), 4) local strafeGain = angularSpeed * strafeMultiplier * delta local baseGain = BASE_AIR_ACCEL * delta currentBonus = math.min(currentBonus + baseGain + strafeGain, MAX_BONUS_SPEED) end else currentBonus = math.min(currentBonus + BASE_AIR_ACCEL * delta, MAX_BONUS_SPEED) end elseif groundTimer >= GROUND_DECEL_DELAY then currentBonus = decayBonus(currentBonus, delta) end local camForward = getCameraYawBasis() local nextPos = rootPart.Position if currentBonus > 0 and isMoving and not isBackward then local stepDist = currentBonus * delta local safePos, hitWall = applyAntiNoclip(character, rootPart, camForward, stepDist) nextPos = safePos if hitWall then currentBonus = 0 end end rotateCharacterToCameraCFrame(rootPart, nextPos) if isFootBlockEnabled then syncFootBlock(rootPart, humanoid) end end)