Proper netcode on Roblox, can remotes be fired every tick?

Hey guys. I’m trying to do hit detection, in which the server keeps track of player movement up to a few seconds, then have the server rewind to the time the player shot from using some distributed game time, and simulate the projectile to see if it was possible that they could hit.

The problem is that Roblox doesn’t have any way to get some game time that is distributed between clients (that I know of). tick() is inaccurate between clients, and os.clock() is not only not precise enough, but also inaccurate between clients. Games like Call of Duty will send the client a game time every replication tick, so that the client can use this to tell the server when they shot. So, I was just going to do this myself by sending it to the client every Heartbeat with a RemoteEvent… but I’m also aware of Roblox’s poor netcode and limiting restrictions on RemoteEvents. So would I be able to do this?

Thanks.

2 Likes