PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

Climbing

Fires when the speed at which a Humanoid is climbing changes.

Humanoid|Humanoids can climb up ladders made out of BasePart|Parts or TrussPart|TrussParts.

Humanoid|Humanoids climb at 70% of their Humanoid/WalkSpeed.

This event will not always fire with a speed of 0 when the Humanoid stops climbing.

See also

  • For swimming and running see the Humanoid/Swimming and Humanoid/Running events
  • You can also detect when a Humanoid is climbing using the Humanoid/StateChanged event
  • You can disable climbing using the Humanoid/SetStateEnabled function

Parameters

Name Type Default Description

The speed at which the Humanoid is currently climbing


Code Samples


Humanoid.Climbing

local function onCharacterClimbing(character, speed)
    print(character.Name, "is climbing at a speed of", speed, "studs / second.")
end
 
local function onCharacterAdded(character)
    character.Humanoid.Climbing:Connect(function(speed) onCharacterClimbing(character, speed) end)
end
 
local function onPlayerAdded(player)
    player.CharacterAdded:Connect(onCharacterAdded)
end

game.Players.PlayerAdded:Connect(onPlayerAdded)