Help With Touching Coordinates/Projectile Positions

Hello,

I am working on a projectile system that handles visuals on client, but hitboxes and other things on server. Currently, I have it setup so there is a value that mimics the position of the projectile, while simultaneously having a ray looping until the magnitude between the two are small enough. However, I feel as though there must be some better way to do this, specifically by cutting out the ray and simply testing if there is an object/player touching the position. I’m 90% sure I can’t simply use regions or collisions for this so I don’t what else could be done.

Building off of this, I also only have it set up for a small point, whereas a projectile part would be more similar to a 3-dimensional plane. So, I would also need to figure out how to get a larger area of positions rather than a point.

I’m not sure if I’m doing anything correctly or if there is a way easier and different way to do this as I’m not very good at this stuff. Also, if my explanation was weird, feel free to ask further questions.

Thank you.

1 Like

Have you looked at the FastCast API? It can handle collisions and also make projectiles without using the Roblox physics engine.

No, I have heard a lot about FastCast but I’m not sure its for me. I am dealing with much larger objects and I’m pretty sure FastCast caters towards things like bullets. Also, I want to write my own scripts so I can have full control and knowledge on what is going on.