So i'm making a NPC with a randomized pattern with a set of nodes I placed and i'm using magnitude to check where he is before he moves again I have my script
while wait() do
local points = game.Workspace.Nodes:GetChildren()
local Table = {}
local Minion = game.Workspace.NPC
Minion:MoveTo(math.random(1,#points)) -- where I don't know what to call
repeat
wait()
until (WhateverPoint.Position - torso.Position).magnitude <= 5 -- line I need help with
end
but I don't know how to write to the chosen object like where WhateverPoint I want that to be whatever node was chosen

1 comment
what I want to know is how to figure out what part the character is moving to