Good day, everyone.
Recently I’ve been working on an NPC, which I want him to face the player as he speaks to them, I saw that Motor6Ds have a “Transform” property so I gave it a shot with TweenService. No errors, nothing happens.
Anyone could assist me or know any other methods?
The code is very raw and was just meant to run once, for testing purposes
local tweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(.7)
local neck = script.Parent.Parent.Torso.Neck
local target = game.Workspace:WaitForChild("httpDerpyy")
wait(5)
print("Looking")
local newTween = tweenService:Create(neck, tweenInfo, {Transform = CFrame.new(neck.Parent.Parent.Head.Position, target.Head.Position)})
newTween:Play()