How do I prevent players from lying down while swimming? Yes, the player just stands when they’re not moving in the water, but I want them to move in the water terrain without lying down.
Like this. Keep in mind that while the player is moving
Do you want the physical characteristics of a swimming player to remain the same? Or do you want to completely override the swimming of a character and force them to walk/run instead?
The way to achieve this is to disable certain animations, so it overrides the default behaviour when in water. I did this with the following in StartrPlayerScripts
-- In a LocalScript
local Player = game.Players.LocalPlayer
local Character = Player .Character or Player.CharacterAdded:wait()
local Humanoid = Character:WaitForChild("Humanoid")
-- DISABLE SWIMMING
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
local function stopSwimming()
while not Character or not Character.Parent do
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
end
end
Player.CharacterAdded:Connect(function(Char)
Character = Char
Humanoid = Char:WaitForChild("Humanoid")
Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
end)
Probably not the ideal way to achieve it but it worked for me
Hi thanks for the response, but I already solve it on my own, what I did is everytime a player move in the water terrain I play an animation that flip above so it will still look like it’s standing while moving in the water.