I don’t have much skills with CFrames calculations, currently I want to program a zombie to walk to the player, but I don’t want him to enter the player so I shorten the path.
thanks in advance!
1 Like
local pos1
local pos2
local offset = 1.5
local direction = (pos2-pos1).Unit
local magnitude = (pos2-pos1).Magnitude
local position = pos1+(direction*(magnitude-offset))
1 Like