local RunService = game:GetService("RunService") local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local FALL_THRESHOLD = -55 -- хватит😡дадаванишванючиэтая local SAFE_VELOCITY = -2 -- хватит😡дадаванишванючиэтая local function getRoot() local char = LocalPlayer.Character return char and char:FindFirstChild("HumanoidRootPart") end local function getHum() local char = LocalPlayer.Character return char and char:FindFirstChildWhichIsA("Humanoid") end local NoFallConnection = RunService.Heartbeat:Connect(function() local root = getRoot() local hum = getHum() if root and hum and hum.Health > 0 then if root.AssemblyLinearVelocity.Y < FALL_THRESHOLD then local rayParam = RaycastParams.new() rayParam.FilterDescendantsInstances = {LocalPlayer.Character} rayParam.FilterType = Enum.RaycastFilterType.Exclude local result = workspace:Raycast(root.Position, Vector3.new(0, -10, 0), rayParam) if result then root.AssemblyLinearVelocity = Vector3.new( root.AssemblyLinearVelocity.X, SAFE_VELOCITY, root.AssemblyLinearVelocity.Z ) end end end end)