Making LinearVelocity face the player

Short and simple. I want the LinearVelocity to go towards the player, but how?

Do you have a script for LinearVelocity?

linearvelocity is an instance… i dunno what you mean. it could mean if i had a script to add the velocity, to change it, add the instance itself… this question is far too vague (character limit)

Does LinearVelocity in constant speed or you change it while playing the game?

constant (char limit eiwfjhfdf)

So you don’t have a script that changes LinearVelocity?

no…?? (character limit ejrhwefl)

Go towards the player and facing the player or the part goes to the player but not facing the player?

dude i just want the LinearVelocity to go towards the player…

I know, but is the orientation also moving and not just the position?

just the position. wjffd its so hard to have a normal conversation cuz of the character limit

Okay! Last question, when the part reaches the player, does it stop?

yes character limit i swear to god

Okay! You should use AlignPosition instead to achieve that.

To set it up, it’s simple. All you gotta do is insert AlignPosition and Attachment in the part, set Mode to OneAttachment, set Attachment0 as the Attachment earlier, set MaxForce and Responsiveness to inf, and set MaxVelocity to the speed you like!

To make it go to the player, let’s make a script. In this script, you set the Position of AlignPosition to the player’s torso. Make sure this script is parented in StarterPlayer → StarterCharacterScripts

local Character = script.Parent
local Part = workspace.ExamplePart -- change this to the part with AlignPosition

while true do
   Part.AlignPosition.Position = Character.HumanoidRootPart.Position -- the torso’s position
   
   task.wait()
end

ty bro character limitttjfhgkdfgk

1 Like

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