hello. I’ve been trying to make an NPC face a player in a smooth way using tweening, but nothing is happening here?
local tweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(0.5,Enum.EasingStyle.Sine)
local tweenProp = {CFrame = (CFrame.new(NPCHRP.Position) * CFrame.new(Vector3.new(),(char.HumanoidRootPart.Position-NPCHRP.Position)*Vector3.new(1,0,1)))}
local tween = tweenService:Create(NPCHRP, tweenInfo, tweenProp)
tween:Play()
“NPCHRP” is the npc’s humanoid root part.
There’s no errors whatsoever