#adding bullet trail, what is the best way to do it
1 messages · Page 1 of 1 (latest)
You can spawn parts after the bullet, but that could be laggy. You can make a trail part in the bullet part, but I haven’t tested that either.
im looking for the most optimized way
Again, that would mean use trail part. More on that here: https://devforum.roblox.com/t/how-would-i-make-a-bullet-trail/2762816
good luck!
trail (if it is a physical bullet), or a beam. do not bother asking what is most optimized when you haven't decided whether or not the bullet is physical or hitscan. in fact dont bother asking optimal at all until you have a game large enough, and laggy enough, to justify optimization. premature optimization is the root of all bad code.
hitscan
never heard of premature optimization is the problem, can you elaborate
just want to learn
this is a very common misconception. understanding all your options, and understanding how they work, even the unoptimized ones, is more important than just blindly asking 'what is most optimal' and then you go with someone's 'trust me bro', you will inevitably end up making poor decisions that way. no one knows the most optimal, if anything the most optimal method is the one that works best for your purpose, which is different for every purpose, and no solution is really better than another. Performance comes second to purpose. So instead of asking which solution is best, ask what solutions there are to choose from and what are their trade-offs instead.