I’m trying to make a pet following system but when i rotate my character around it stays there and don’t stay behind the player instead it moves to the front of the player or left etc
code:
local player = game:GetService("Players").LocalPlayer
local char = player.Character
local humanoid = char:WaitForChild("Humanoid")
local Root = char:FindFirstChild("HumanoidRootPart")
local Pet = game.Workspace.Pet.PetPart
local RunService = game:GetService("RunService")
RunService.RenderStepped:Connect(function()
Pet.CFrame = Root.CFrame + Vector3.new(-3,2,-3)
end)