local v1 = game:GetService("Players") local v2 = game:GetService("ReplicatedStorage") local v_u_3 = game:GetService("RunService") local v_u_4 = game:GetService("TweenService") local v_u_5 = v1.LocalPlayer local v_u_6 = require(v2:WaitForChild("GameSettings")) local v_u_7 = Random.new() local v_u_8 = OverlapParams.new() v_u_8.FilterType = Enum.RaycastFilterType.Exclude local function v_u_11(p9) v_u_8.FilterDescendantsInstances = { p9.Parent } for _, v10 in ipairs(workspace:GetPartBoundsInBox(p9.CFrame, p9.Size + Vector3.new(0.5, 3, 0.5), v_u_8)) do if v10.Name ~= "LadderHitbox" then continue end return true end return false end local function v35(p12) local v_u_13 = p12:WaitForChild("Humanoid") local v_u_14 = p12:WaitForChild("HumanoidRootPart") local v_u_15 = 0 v_u_13.StateChanged:Connect(function(p16, p17) if p17 == Enum.HumanoidStateType.Climbing then local v18 = true if v18 then v18 = not v_u_11(v_u_14) end if v18 then v_u_15 = v_u_15 + 1 local v_u_19 = v_u_15 task.spawn(function() for _ = 1, 12 do v_u_3.Heartbeat:Wait() if v_u_15 ~= v_u_19 or v_u_13:GetState() ~= Enum.HumanoidStateType.Climbing then return end local v20 = true if v20 then v20 = not v_u_11(v_u_14) end if not v20 then return end v_u_13:ChangeState(Enum.HumanoidStateType.Jumping) end end) end else if p16 == Enum.HumanoidStateType.Climbing and (p17 == Enum.HumanoidStateType.Jumping or p17 == Enum.HumanoidStateType.Freefall) then local v21 = true if v21 then v21 = not v_u_11(v_u_14) end if v21 then v_u_15 = v_u_15 + 1 local v_u_22 = v_u_7:NextNumber(50, 51) local v23 = v_u_14.CFrame.LookVector local v24 = v23.X local v25 = v23.Z local v_u_26 = -Vector3.new(v24, 0, v25) task.spawn(function() v_u_3.Heartbeat:Wait() local v27 = nil for _ = 1, 1 do local v28 = v_u_14.AssemblyLinearVelocity local v29 = v28.X local v30 = v28.Z local v31 = Vector3.new(v29, 0, v30) if not v27 then if v31.Magnitude > 3 then v27 = v31.Unit else if v_u_26.Magnitude <= 0.1 then return end v27 = v_u_26.Unit end end local v32 = v_u_14 local v33 = v27 * v_u_22 local v34 = v28.Y v32.AssemblyLinearVelocity = v33 + Vector3.new(0, v34, 0) v_u_3.Heartbeat:Wait() end end) end end return end end) end if v_u_5.Character then task.spawn(v35, v_u_5.Character) end v_u_5.CharacterAdded:Connect(v35)