I want to make the pets closer to the character if there are fewer pets equipped, and if there are a lot of pets equipped, the pets will be further away from the character. I also want to make the bigger pets hit the ground properly just like the small dogs in the video.
Hello there, I remember making the post about this 2 years ago, I guess time flies. So in order to adjust the distance away from the character is change the scalar in the getXAndZPositions. Which would go like this:
local function getXAndZPositions(angle, scalar)
local x = math.cos(angle) * scalar
local z = math.sin(angle) * scalar
return x, z
--> Then you just call the function like this
local X, Z = getXAndZPositions(
Index * (FullCircle / #PetTable),
And for the other issue, you just simply weld an anchor point beneath the pet and move that part instead of moving it from the centre position.