PcoWSkbVqDnWTu_dm2ix
The Developer Hub is now deprecated and information on this page may no longer be accurate. Instead, you should go to our new and improved documentation. You can also learn more about the future of documentation.
Collapse Sidebar

Swimming

This event fires when the speed at which a Humanoid is swimming in Terrain water changes.

Humanoid|Humanoids swim at 87.5% of their Humanoid/WalkSpeed.

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

See also

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

Parameters

Name Type Default Description

The speed the Humanoid is currently swimming at


Code Samples


Humanoid action events

This code, when run from a LocalScript parented to a Player/Character will listen to the Humanoid|Humanoid’s action events and print when they are fired.

This code sample is intended to demonstrate when each event does, and does not, fire.