I’m currently trying to make an NPC which moves from side to side, but for some reason the following code causes the NPC to raise up into the air, even though the position is to the left of him, could anyone help?
local targets = workspace:WaitForChild("Targets")
local tweenservice = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(
4,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false,
0
)
local goals = {
Position = Vector3.new(-148.325, 1.247, 60.709);
}
local moveTween = tweenservice:Create(targets.Tim.HumanoidRootPart, tweenInfo, goals)
moveTween:Play()