I have large water tiles in my game to reduce lag, is there any way to make the player able to swim in it like in water terrain?
Body movers and use of the Swimming HumanoidStateType. Your aim is to make the character fly when they’re in a certain region, so flying in the water region essentially gives that illusion of swimming.
2 Likes
Wait, is the humanoidstatetype a part I can put in the water? And should I use a swim animation?
No, it’s not a part. Look it up on the Developer Hub and infer meaning from its name. It’s a literal term for the state of a humanoid object, which you can set to swimming.
And I would put that in a script in the water?
You can implement it in any way you want to. Try doing this on your own first.
1 Like
like me i am making a minecraft terrain but i am using voxels idk how to make it swim
En.Swim.Event:Connect(function(X,Y,Z,Char)
local humanoid = Char.Humanoid
if Engine.IsFluid(X,Y,Z) then
-- Enable swim
else
-- Disable swim
end
end)