Ive gone on youtube, documentations but i can't seem to find the perfect solution to configure hitboxes. Hence, this is my last resort
I am currently doing my hitboxes and cooldowns on the server, but i just wanted to make sure that what im doing is correct b4 continuing.
My current system is structured like this
Client fires client modules based on its input
Inside of the client module:
local code runs and 2 remote events fire (cooldown and hitbox)
i made a local debounce and a server boolean to check whether its okay to start the attack (made a local debounce cuz the player can start the attack again before the server switches the boolean)
Then the cooldown event fires back and switches the local debounce
Hitbox is created on the server via the remote event and damage stuff is after the hitbox detection phase
Problem 1:
Hitbox done on the server has a lot of delay for high ping players. I've seen some other people saying do your hitboxes on the client and double check it with the server to verify???
Also some people suggest doing client predictions and server reconcilation which i've no idea of how to implement this system.
I mean like what do those combat games use, client or server.
Problem 2:
I think cooldowns should be done on the server, but Im not really sure.
It would be nice if someone could send me a system to maybe analyze and learn, i have a hard time understanding purely on words.
Pls help me 🥲