Aligning Character with Ground in Custom Water

Hi, I scripted some custom water.

I want to align the player to face the ground when swimming, but I need some help with it.

I don’t exactly know which method is best to make the alignment.

Should I use the NormalId of a ray casting down?

And when I detect the orientation that the HumanoidRootPart should be, should I immediately set the orientation/CFrame it or should I use a BodyGyro?

Pretty sure y’all don’t need to see the script, it’s just when the player is walking, the swim animation plays instead.

Solved by

and

1 Like

Roblox avatars works with humanoid and you cant turn it as you wish,
i suggest to rotate C0 of RootJoint of Roblox avatar.