Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Humanoid:MoveTo and PathFinding Script?

Asked by 6 years ago

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 answer

Log in to vote
0
Answered by 6 years ago
while true do
    wait(0.5)
    local target = findNearestTorso(script.Parent:GetChildren(Torso.Position)
    if target ~= nil then
        script.Parent.WalkToPoint = target
    end
    end)
Ad

Answer this question