Ignoring Water Physics

Some time ago, I remember reading documentation or seeing a property of some object that would allow me to tell a player’s character to ignore terrain water physics (i.e. they wouldn’t swim when they touched water). Does such a thing still exist?

If not, I was also thinking I might be able to achieve the same result by creating a listener for when the Humanoid’s state changed, and then changing it if it was set to swimming, but I’m not sure how efficient that would be.

Any suggestions or help would be appreciated. Thanks.

3 Likes

I think you are looking for Humanoid:SetStateEnabled
Example usage in your case would be like this

game:GetService'Players'.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
5 Likes

That’s perfect for what I’m trying to do. Thanks!