I’m making a target lock-on system for my game using a RenderStepped loop to rotate the character towards the target along with the Attach CameraType to keep the camera attached to behind the player, but it instead results in this:
Script:
local HumanoidRootPart = Character.HumanoidRootPart
local hrp = lockedCharacter.HumanoidRootPart
Camera.CameraType = Enum.CameraType.Attach
RunService.RenderStepped:Connect(function()
HumanoidRootPart.CFrame = CFrame.new(HumanoidRootPart.CFrame.Position, hrp.Position)
end)