I am trying to make a fishing rod but I cant make the bait move forward with curved line, its hard to explane I included some pictures and GIFs to make it easier to understand.
I want the route of the bait to move like in the picture:
If you’re fine with unanchored Parts (you may want to use NetworkOwnership), I suggest using the Velocity property. It’s directly affected by the workspace.Gravity property as specified in the linked api-reference.
local function fire(part, startPoint, targetPoint)
-- Calculate how far we have to travel
local distance = (targetPoint - startPoint).magnitude
-- Since speed = displacement / time, our speed is:
local speed = 10
-- Position our part at the start, pointing to the target
part.CFrame = CFrame.new(startPoint, targetPoint)
-- Shoot the part
part.Velocity = part.CFrame.lookVector * speed
end
fire(lure.Fishinglure, rodPart.Position + Vector3.new(1, 0, 1), mouseHit.p + Vector3.new(0, 5, 0))