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

How to change EmptyCutoff?

EmptyCutoff is a part of the path finding service but I can't figure out how to change the value . anyone know? :3

1 answer

EmptyCutoff is a property of the Pathfinding Service, written as a percentage.

The percentage is basically the maximum volume a voxel can contain to be considered empty when making paths.

A lower number means more of the 4x4x4 cube has to be empty or else the pathfinder will find a different way from point A to point B, a higher number means you can add more to a box and still have it as part of a path.

All you need to do to change the value is to find the PathfindingService, and change the value.

local PathfindingService = game:GetService("PathfindingService") -- Found the service.
PathfindingService.EmptyCutoff = .5 -- Set the value, from .16 to .5

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