Trail takes time to render

So i am making a gun and added a bullet with a trail object. problem is when spawned, the trail takes time to render, and is only seeable 20-30 studs away.
Script :

loop = game:GetService("RunService").Heartbeat:Connect(function(dt)
		Bullet.CFrame *= CFrame.new(0, 0, -20 * (dt*60))
		if (Bullet.Position - FirePartPos).magnitude >= 1000 then
			Bullet:Destroy()
			loop:Disconnect()
		end
	end)

Video will be much explanitory :


Trail Propreties :

Thanks !

Try to move trail back from part (since its just effect, there is no need to make it super accurate)

So you’re making your first bullet render (0, 0, -20 * (dt*60) studs away and wondering why the Trail isn’t showing up until then?
You could use @Znimator’s trick to help out if it’s just the Trail’s rendering you want to fix.

2 Likes

well i don’t see the problem, if i reduce on of the 2 values my bullet is going to be slow

You could leave the values the same to make the bullet the same speed, just change the script so it doesn’t render the first bullet 20 studs away, have it render 5 studs away, or whatever works for you, then add the 20 stud increments after the first one.

1 Like