Modeling a projectile's motion

fixed the bug, but the beam is only straight?

local curve0, curve1, cf1, cf2 = beamProjectile(Vector3.new(0, -game.Workspace.Gravity, 0), direction, game.Players.LocalPlayer.Character.HumanoidRootPart.Position, heldFor)

Is there any way to increase the time taken, without increasing the height?