When the pets (aka puppies) moves and follows my character, they tilt up. How would I make it where it the blocks will always follow and point straight to their designated vector3 and not tilt up?
I am using a BodyGyro and BodyPosition to move the pets. Is it something I need to tweak with the BodyPosition power/dampening or with how the CFraming of the BodyGyro is?
Example screenshot
part of script that moves pet
while true do
wait()
for _, Puppies in pairs(PuppyChildren) do
---Puppies Body stuff
local PetPos = Puppies.BodyPosition
local PetGyro = Puppies.BodyGyro
-- player owner
local Owner = player.Name
-- owner position
local OwnerObj = game.Workspace:WaitForChild(Owner)
local OwnerPos = OwnerObj.HumanoidRootPart.Position
--- Puppies random vector
local PetVector = Puppies.PetVector
-- if player is moving do this
if Humanoid.MoveDirection.Magnitude > 0 then
PetPos.P = 150
PetPos.D = 100
PetPos.Position = OwnerPos + PetVector.Value
PetGyro.CFrame = CFrame.new(Puppies.Position, OwnerPos + PetVector.Value)
-- etc
-------------------------------------------------------------------
o/ ty