Prevent Character From Floating Up When Idle?

Is there a way to prevent the character from automatically floating back up to the surface of the water when they stop swimming?

1 Like

Make everything in the character as dense as water (so set each part’s density to 1).

2 Likes

Nvm, I figured it out.
Here’s the code:

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Char)
		wait()
		for i,v in pairs(Char:GetDescendants()) do
			if v:IsA("BasePart") then
				v.CustomPhysicalProperties = PhysicalProperties.new(1,0.3,0.5)
			end
		end
	end)
end)
4 Likes

Yeah, I realized the solution right after you posted. Thanks anyways!