I am making a script for a pet that follows you. Right now I have the pet right behind the player:
while wait() and player.Character do
local LookVector = player.Character.Head.CFrame.LookVector
pet.CFrame = CFrame.new(player.Character.Head.Position - LookVector * 3, player.Character.Head.Position + LookVector)
end
How would I go about offsetting the pet to the left so the pet is not directly behind the player, but rather to the back and left?
while wait() and player.Character do
local LookVector = player.Character.Head.CFrame.LookVector
local RightVector= player.Character.Head.CFrame.RightVector
pet.CFrame = CFrame.new(player.Character.Head.Position - (LookVector + RightVector).unit * 3, player.Character.Head.Position + LookVector * 200)
end