Hello developers! I’ve recently been developing a game wherein I need to transfer a tool between players depending if one player touches the another player with that tool (something like in Hot Potato). I’ve been using .Touched but there’s a lot of latency issues. Eg: One player seems to touch the other on screen but the other player doesn’t feel the same, and ends up getting the tool from super far away.
Is there any fix/advice to this? I’d be grateful if anyone could shed light onto my issue!
That is the consequences of any multiplayer games, you’re always going to have this issue no matter what.
You can alleviate some of the visual latency on the player with the hot potato by setting up the Touched connection on the client-side, sending a signal to the server that verifies the legitimacy of the action by accounting for the acceptable distance between characters. This could be done by some calculations accounting for WalkSpeed, extra threshold, maximum distance, and even ping.
1 Like