#Detecting Movement in Water

1 messages · Page 1 of 1 (latest)

rough imp
#

Hey.
So I want to check if my player is moving underwater, while avoiding the gravity, which makes the player float up. I've tried humanoid.MoveDirection.Magnitude > 0.1 without success. Could anyone share ideas, of how to solve it?

gaunt lily
rough imp
# gaunt lily

There is no code to share, regarding this post. I've also mentioned what I tried in the message.

remote ospreyBOT
#

studio** You are now Level 6! **studio

rough imp
gaunt lily
rough imp
#

It will always be true. Altough I'm not moving my player. I assume due to water physics, my player floats up and that does something to the MoveDirection.

gaunt lily
#

terrain water or part water?

rough imp
rough imp
gaunt lily
rough imp
#

Perhaps I need to loop, while it remains equipped?

gaunt lily
gaunt lily
#

second part is testing that under terrain-swimming condition

#

i'm not sure of that behavior thonkoof

#

i assume it receives regular inputs like normal, XZ only

rough imp
gaunt lily
gaunt lily
rough imp
gaunt lily
rough imp
gaunt lily
#

there's another event for humanoid state change which you appear to also only check once