Make a part move away from the closest player

  1. What do you want to achieve?
    I haven’t scripted in a while and
    I have a little orb that I want to run away from the closest player with a radius it can detect players from

  2. What is the issue?
    I cant seem to get it to work

  3. What solutions have you tried so far?
    Ive look for solutions on other posts of the devforum but I cannot find any other post


do you have any code so far for me to go off for you?

try using magnitudes and applyimpulse etc stuff