I made the attack hitbox on the server, which makes it difficult to play due to the delay. I tried to modify it for the client, and it stopped lagging, but it could still reach other players on the server from a few meters away. I’ve been looking at various tutorials on how to fix it and researching the delay issue, but I haven’t found a solution. If anyone knows how to resolve this, please share your knowledge.
I really don’t think its possible with players being handled on the client on default try it with server authority in studio and then when its released on client then try with multi-able players to see if that fixes most of the issue
There’s some open-sourced libraries you can try, an obvious choice would be to try Chickynoid - however, learning it and setting it up will take time. It’s basically replacing ROBLOX’s character physics and replication to making it server authoritative which more so improves delay.
If you’re looking for something simple, Chrono seems like a nice option. If I remember correctly, remote events send faster than character replications, so Chrono essentially pushes replication forward faster and does some smart compression tricks to the replication data which makes it take less bandwidth.
Keep in mind that delay will always be there, that’s just the nature of how networking is. There are tricks you can do to hide the delay, but they’re pretty complex (you can look at Valve’s Source Multiplayer Networking as a starting starting point).