(Note: if this is in the wrong place i am sorry)
So im wondering what would be the best/most efficient way to make a pet follow script? (you can have multiple pets equipped at once, 6 Max)
Would best way to update the position of the pets when the player moves
or to use body positions/rotations
1 Like
astraIboy
(The Batman)
August 1, 2020, 10:33pm
#2
Id use bodyvelocity and bodygyro for that
sean21307
(sean21307)
August 1, 2020, 11:14pm
#3
Please use the search feature in the future, this question has been answered many times.
There are a lot of different methods to have a pet follow you, but one @Quoteory mentioned is probably one of the easiest and most efficient.
If it’s possible to avoid loops, it’s best to do so, both AlignPosition and AlignOrientation allow you to minimize changes and avoid loops and client side controlling via local script (assuming it’s just a basic follow pet system, with more advanced ones you will need to do client side scripting too, but it’s still minimized)
here is an example of this in action, I tried to explain everything in comments, but if you have any questions let me know
Module named PetService in ServerScriptService
…