Help with Assembly Linear Velocity

Ive been reaserching and i have made many scripts about assembly linear velocity. But I want to know if something like this is possible to achieve and how would i do it?

My assembly linear velocity pattern:

image

see it keeps a steady force then it gets to that 0 point and gravity brings it down.

What i want to make it do instead:

Kind of keeping the force then when it reaches a certain point thats when gravity kinda brings it down

What im doing with assembly linear velocity:

	    local Duration = 1
		local Direction = (Mouse.Hit.Position - Pistol.FirePart.Position) / Duration
	
		local NewBullet = Bullet:Clone()
		NewBullet.Position = Pistol.FirePart.Position
		NewBullet.Parent = workspace
		NewBullet.CanCollide = true
		
		NewBullet.AssemblyLinearVelocity =  Direction + Vector3.new(0, workspace.Gravity / 2, 0) * Duration
		 

if anybody knows it would be great. Thanks

bumping this post up againnnnn

If you want to continually apply a force and then stop applying it at a certain point you can use a LinearVelocity object. It has an “Active” property that you can just set to false to disable it.

2 Likes

Im so slow i completely forget about this, thanks.

1 Like

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