Bodygyro problems

Hi i made a model which’s rootPart is following a player. I alsow anted to make it have the same orientation as the player’s humanoidRootPart, but it face toward the opposite direction.
https://gyazo.com/2ec2296984f62d8276e0ddae5df49aee
script:

game.Players.PlayerAdded:Connect(function(plr)
    local char = plr.CharacterAdded:Wait()
    local humrp = char.HumanoidRootPart

    local kBot = game.ReplicatedStorage["K-BOT"]:Clone()
    kBot.Parent = workspace
    kBot.RootPart.CFrame = humrp.CFrame + Vector3.new(3, 0, -4)

    local bodyPos = Instance.new("BodyPosition", kBot.RootPart)
    bodyPos.MaxForce = Vector3.new(math.huge, math.huge, math.huge)

    local bodyGyro = Instance.new("BodyGyro", kBot.RootPart)
    bodyGyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge)
    
    while wait() do
        bodyPos.Position = humrp.Position + Vector3.new(-3, 2.5, -4)
        bodyGyro.CFrame = humrp.CFrame
    end
end)

i have tried change these line but none of them worked:

 while wait() do
        bodyPos.Position = humrp.Position + Vector3.new(-3, 2.5, -4)
        bodyGyro.CFrame = humrp.CFrame * CFrame.new(0,2,0)
    end
 while wait() do
        bodyPos.Position = humrp.Position + Vector3.new(-3, 2.5, -4)
        bodyGyro.CFrame = humrp.CFrame + Vector3.new(0,180,0)
    end
1 Like

Have you tried multiplying the BodyGyro’s CFrame with CFrame.Angles(0, math.rad(180), 0)?

1 Like