What function would detect something I answer back to a NPC. For example, if I said no to it, how would I detect that I said no to it and be able to run a script that caused the NPC to walk to a point. Below is my current script:
while true do
order = game.Workspace.FoodTruck1.Order.Position
script.Parent.WalkToPoint = order
wait ()
end

2 comments
Thank you potatoboy9999 :D! This was super helpful! Would this be a local script?
Also, when I use the script, it says this: Workspace.NPC1.Head.Dialog.Script:7: 'end' expected (to close 'function' at line 2) near 'elseif'