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

How could you give a part pathfinding to give it the best way to touch a player?

Asked by 9 years ago

I AM NOT ASKING FOR A SCRIPT! I want to know if you could make a part follow you.

0
Use bodyforces. You can search a few on the wiki, namely bodyposition. aquathorn321 858 — 9y
0
Use bodyforces and pathfindingservice. HungryJaffer 1246 — 9y

2 answers

Log in to vote
0
Answered by 9 years ago

I reccomend using PathfindingService, this is a service created by Roblox that allows you to generate paths using :CreateSmoothPathAsync()

http://wiki.roblox.com/index.php?title=Pathfinding

Ad
Log in to vote
0
Answered by 9 years ago

Adding onto @Hungryjaffer's answer, to use a path you need to use GetPointCoordinates which returns a table of all the points the part may go.

local paths = pathfindingService:ComputeRawPathAsync(start, target, 500)
--pretent "pathfindingService" is a real variable

Answer this question