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.