Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local start = workspace.start
- local finish = workspace.finish
- local service = game:GetService('PathfindingService')
- local path = service:FindPathAsync(start.Position,finish.Position)
- local points = path:GetWaypoints()
- for key,value in pairs(points) do
- local part = Instance.new ('Part')
- part.Parent = workspace
- part.Anchored = true
- part.CanCollide = false
- part.Position = value.Position
- part.Size = Vector3.new(1,1,1)
- end
Advertisement
Add Comment
Please, Sign In to add comment