I have a wolf that chases people. However, it glitches when it tries to go to water, and it tries to do the swimming animation, but it makes it look weird. I know about the following code:
game.ReplicatedStorage.Wolf.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
game.ReplicatedStorage.Spider.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming, false)
This is in server script storage.
However, it doesn’t seem to be working. Do I have to put it in a while true do loop?