Well, you can use the Humanoid.StateChanged to see if a player is climbing or if they are not!
https://developer.roblox.com/api-reference/event/Humanoid/StateChanged
Here is a script that showcases Humanoid.StateChanged, taken from that wiki page (make sure this is a local script in the StarterPlayerScripts)
local JUMP_DEBOUNCE = 1
local isJumping = false
humanoid.StateChanged:Connect(function(oldState, newState)
if newState == Enum.HumanoidStateType.Jumping then
if not isJumping then
isJumping = true
humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
end
elseif newState == Enum.HumanoidStateType.Landed then
if isJumping then
isJumping = false
wait(JUMP_DEBOUNCE)
humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, true)
end
end
end)
If this helped, please upvote, and if it didn't work, please comment.
1 comment
THANKS ALOT BOTH OF THE ANSWERS WORK