i’ve been working on a script and i’ve gotten to a point where the throw works and the script that’s meant to bring it back like a boomerang just doesn’t work. any help?
There isn’t really a simple way to achieve this. Try just mapping the position of the HumanoidRootPart and just slowly vector lerp the offset of the object to it.
Haven’t tested the script but something like this:
bv.Velocity = hrp.CFrame.LookVector*-10
local start_tick = tick()
repeat
bv.Velocity = bv.Velocity:Lerp(hrp.CFrame.p-boomerang.Position,0.1)
until (boomerang.Position-hrp.Position).Magnitude < 3 and start_tick-tick() > 3
You can use a LineForce to simulate what @LegosAreGood05 said originally with 0 lines of code, perhaps this take on his solution would work somewhat nicely
You just need two attachments and the line force will attempt to move them together