#how to make the player take much less time before starting an attack?
1 messages · Page 1 of 1 (latest)
task.wait(0.00000000000000000000000000000000000000000000000000000000001) 
genius
** You are now Level 3! **
what delay? i see no delay. what i see is a long animation. maybe increase the animation speed
I mean how long it takes to do an attack after pressing a button, you can see it in the keyboard
ya most of the time is the animation by the look of it
or were you talking about the time between when the player presses a key and the animation starts?
Ues
Yes
depends how you're doing it. you're probably firing a remote to the server and the server plays the animation. sound about right?
Then how does untitled boxing game does it
there's a few games who do it the better way
but you probably aint gonna be able to do that on your own
True
but see the thing about network latency is you cannot get rid of it. you cannot change it. but what you can do is either hide it or move it.
with great difficulty.
to get it any faster than what you already have you'd need some form of prediction and lag compensation, aka server authority aka rollback netcode
if you weren't even aware this was the solution, you aint have much of a hope implementing it.
I'll try to research about this and hopefully I somehow figure it out
not going to happen
best advice is just stick with what you have, is good enough 👍
you can maybe switch to roblox's server authority later on when its more developed
one does not simply "hopefully somehow figure out" rollback netcode 👍
i forgot to replay this but for my solution is to make the local player sees the attack visually slower depending on the ping but everyone else (server) sees it at normal speed and hit timing is always the same, also fixed the input lag thing, heres the result