Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i detect if Player is Falling?

Asked by 2 years ago

im trying to detect if player is falling, and when player is falling it prints "Player is Falling" but none of the script i make works. How do u Detect when player is falling then prints "Player is falling"? (Thanks in Advance)

1 answer

Log in to vote
0
Answered by 2 years ago

The Humanoid has an Event for falling.

SCRIPT

game.Players.PlayerAdded:Connect(function(Player)
   Player.CharacterAdded:Connect(function(Character)
      Character.Humanoid.FreeFalling:Connect(function(Active)
         if Active then
            print("Player is falling")
         end
      end)
   end)
end)

Humanoid

0
thx! ill test it if it works MOJANGcreator091 60 — 2y
0
it works MOJANGcreator091 60 — 2y
Ad

Answer this question