Hi devs,
I’m pretty sure there’s a way to make LinearVelocity move a part towards an attachment, how can I do that?
Hi devs,
I’m pretty sure there’s a way to make LinearVelocity move a part towards an attachment, how can I do that?
I tried to move a part toward an attachment but it seems to have issues, moving part to part does work though:
set CFrame Position of part to your targeted part with a script.
right-click on part → show Orientation Indicator. This will show you where the front face of the part is. Usually its -z axis
so when you move linearvelocity, move the object with z axis on negative value.
Combine this with RunService.Heartbeat function so it can fire every frame / moves real time regardless of framerate.
RunService.Heartbeat:Connect(function(deltaTime)
moveCFrame()
end)