How to use bodygyro to make dummy face the same way as the player is

Hi. I was thinking on how I could use bodygyro to repeatedly make a dummy and player face eachother?

I have a script where it does something like this, but it doesnt use bodygyro.
The script I have also bugs the whole dummy when I try to move it or make it jump, but here it is.

local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()

local humrp = char:WaitForChild('HumanoidRootPart')

game:GetService('RunService').RenderStepped:Connect(function()
	for _, MODEL in pairs(workspace:GetChildren()) do
		if MODEL:IsA('Model') and MODEL:FindFirstChild('DummyBot') then
			MODEL:WaitForChild('HumanoidRootPart').CFrame = CFrame.lookAt(MODEL:WaitForChild('HumanoidRootPart').Position, Vector3.new(humrp.CFrame.X, MODEL:WaitForChild('HumanoidRootPart').CFrame.Y, MODEL:WaitForChild('HumanoidRootPart').CFrame.Z))
			task.wait()
		end
	end
end)

I cant seem to understand BodyGyro, so I am gonna need some help on this.
Thank you.

Body movers are deprecated. Use AlignOrientation to keep them facing eachother. Use existing attachments or make a new attachment in both characters in the torso.

1 Like