so i was creating this magnitude combat, but i really hate how it fires and avoids the if statement even if your just a few studs away from the opponent, so to avoid this problem i'd like to know how to make it wait half a second or less until the magnitude actually corresponds with the opponent and executes the if statement.
code-
if (v.HumanoidRootPart.Position - Character.HumanoidRootPart.Position).Magnitude < 5 then
--stuff here
end
