local Players = game:GetService("Players"

local function onPlayerAdded(player)
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid"

local jumpValue = Instance.new("IntValue"

jumpValue.Name = "JumpCount"
jumpValue.Value = 0
jumpValue.Parent = player
local jumping = false
humanoid.StateChanged:Connect(function(oldState, newState)
if newState == Enum.HumanoidStateType.Jumping and not jumping then
jumping = true
jumpValue.Value = jumpValue.Value + 1
print("Игрок прыгнул! Всего прыжков: " .. jumpValue.Value)
elseif newState == Enum.HumanoidStateType.Landed then
jumping = false
end
end)
end
Players.PlayerAdded:Connect(onPlayerAdded)