Client vs server side hit detection

Currently my game loop involves a part being created then positioned in the sky. This is handled on the server. Then the parts position is tweened to its destination. This is handled on the client. Therefore, the server doesn’t know that the part is moving. The parts position only updates on the server once the tween has completed. Hence this makes server side hit detection awkward. At least that’s what I’ve gathered. I’m new to scripting so I don’t really know lol.

I need help. I don’t want to do my hit detection on the client. Or maybe your replies might change my mind. Also I’m not going to use .Touched. Also I’m probably way over complicating things. I just want my script to be reliable lol.

What should I do?

If you would like more information I will provide screenshots etc.

1 Like

I Think you can send a tween to the server so the server will play it or you can just create a tween on the server. Do you have more information about it though?

Creating a tween on the server puts unnecessary load on the server. The tween also becomes very choppy. I don’t think this is really an option.