Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Humanoid:MoveTo and PathFinding Script?

Hello, I want to make my game to Big family.I am trying to change my MoveTo script to Pathfinding. But i dont know pathfinding. How can i do? Can i get this script to Pathfinding?Dont give me Wiki.

while true do
	wait(0.5)
	local target = findNearestTorso(script.Parent.Torso.Position)
	if target ~= nil then
		script.Parent.WalkToPoint = --What can i do for Targetting Players?
	end
	end

1 comment

1 answer

✓ Accepted answer
while true do
    wait(0.5)
    local target = findNearestTorso(script.Parent:GetChildren(Torso.Position)
    if target ~= nil then
        script.Parent.WalkToPoint = target
    end
    end)

This discussion is preserved as it was. New answers, comments, and votes are closed.