I have a custom made muzzle loader script in my game, and I want the bullet projectile to smoothly move to the player's mouse's position in the workspace. Currently, I use velocity,

local hitPos = mouse.Hit.p
						
fireEvent:FireServer(body,fireDamage,fireSpeed,hitPos)

Gun script^

local newFLB = flBall:Clone()
newFLB.Position = body.Position
newFLB.Orientation = body.Orientation
newFLB.Parent = game.Workspace
	
newFLB.Velocity = (hitPos - body.Position).unit * fireSpeed
newFLB.CFrame = CFrame.new(newFLB.Position, hitPos)

Server event^

but it's choppy and broken. I was wondering if there were a better way to send the projectile to their mouse?

2 comments

0

Sorry, wish I could help, but velocity is the best way that I know of to do this. Could you please send a video of what is going on, so I could see what you mean?