local player = require("player") local water_check = true registerClientTick(function() -- Ранний выход, если игрока нет или он уперся в стену/блок if not player.entity or player.entity.horizontal_collision then return end local should_sprint = not (player.entity.is_touching_water and water_check) if should_sprint and not player.input.isPressedSprinting() then player.input.setPressedSprinting(true) end end) registerCommand("autosprint", function(commandName, args) if #args == 1 and args[1] == "water_check" then water_check = not water_check player.addMessage("§7[§6Neo Scripts§7] §fWater check: " .. tostring(water_check)) else player.addMessage("§7[§6Neo Scripts§7] §fUsage: /autosprint water_check") end end, function(info) return { { text = "water_check", tooltip = "Toggle water check for auto-sprint" } -- Исправлен тултип } end )