-
What do you want to achieve?
I want to make the turret look at the player’s HumanoidRootPart’s orientation when the player’s nearby to the turret. -
What is the issue?
When the player gets nearby the turret, The turret looks at a completely different direction. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I tried using CFrame.Angles & CFrame:ToOrientation & CFrame.fromOrientation, but none of them worked, Yes, but they didn’t work.
Here is the model for the turret: https://www.roblox.com/library/6201741245/devforumpost-2
-- Issue part
local a = CFrame.new(
playerhumanoidrootpart.Orientation.X,
playerhumanoidrootpart.Orientation.Y,
playerhumanoidrootpart.Orientation.Z
)
model:SetPrimaryPartCFrame(
model:GetPrimaryPartCFrame(),
a,
a,
a
)
The CFrame.Angles & CFrame.fromOrientation & CFrame:ToOrientation are not in the model since i have not saved them. I spent 2-3 hours trying to fix this one problem