Not wanting to write my own ‘walking’ code for a Pet NPC, I use a Humanoid object in the pet. However, I DID write my own swimming code, and thus need the pet’s Humanoid to be in a Physics state while in water.
The problem happens when I am riding the pet. If I am not welded to the pet by a weld or seatweld, the pets Humanoid will change states with Humanoid:ChangeState(), however when I am connected to it, the pet’s Humanoid will not change states.
I can’t seem to find or think of a solution, and I cant detach myself every time my pet goes in or out of water while I am riding it. The reason is that I detect when the weld is broken to determine when I am not riding the pet anymore, and several pieces of movement code are swapped out.
Anyone have any experience with this, or have any ideas on how to solve this? I think the issue might be that the pet’s Humanoid is server side, but thats the only place it could be, since the pet is a server object.
Any help is appreciated.