I’m trying to make an npc move in the direction he looks, but he just moves in the same direction
robloxapp-20230609-2343253.wmv (942.9 KB)
heres what i have:
local hum = script.Parent.Parent.Parent.Humanoid
local head = script.Parent.Parent.Parent.HumanoidRootPart
script.Parent.MouseClick:Connect(function()
hum:Move(Vector3.new(head.Orientation.X-1,head.Orientation.Y,head.Orientation.Z), false)
end)
ive tried to make it directly forward but he just turns
robloxapp-20230609-2349264.wmv (1.4 MB)
this what its written as:
local hum = script.Parent.Parent.Parent.Humanoid
local head = script.Parent.Parent.Parent.HumanoidRootPart
script.Parent.MouseClick:Connect(function()
hum:Move(Vector3.new(head.Orientation.X,head.Orientation.Y,head.Orientation.Z), false)
end)