Hey devs so this is a open source code of a following system and I want that when the position difference between the zombie and the player it’s chasing is 5 it does something
Put this in the While Loop’s nested If
local Distance (script.Parent.Humanoid.Position - Target.Position).Magnitude
if (Distance <= 5) then
--> Do something here...
end
I did that already didnt work…But I solved the problem Thank you for your help.
Please mark your post as a solution or else people could get confused.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.