Make Target go towards the caster

Hi, can I have help how can I make the target go towards the caster like in this video?? any help would be appreciated! Thank you in advance.

2 Likes

I think you can use Align Position for that.

2 Likes

here’s a way i thought of:

  1. The caster’s spell must “mark” a target
  2. Whenever the spell “marks” a target, tween their position
2 Likes

You can tween the cframe of the target to make them move infront of and face the caster

local ts = game:GetService("TweenService")
ts:Create(targetHRP,TweenInfo.new(3),{CFrame=CFrame.new(casterHRP.CFrame*CFrame.new(0,0,-5).Position,casterHRP.Position)}):Play()

4 Likes

“mark” can be used by using raycasting to check if mous hit is a character:

Then yea i suppose you can use tween for that

3 Likes

it works!! Thank you so much :))

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.