heyo, so what i'm tryna do here is have several attributes (health in this example, but note stamina is also a thing) be updated onto the server with the client doing the updating as well, so the health is updated immediately on the client's side to feel responsive, but also kept track on the server's end for external factors like other players doing damage. the issue is, when the server updates its copy of the health, it shows up on the client side as flickering from its old value to the new value, as seen in the video. but like in the video, this only happens sometimes?
i have this in a modulescript run by a localscript. the function just subtracts health and returns the resulting health (as a backup, in case i need it)
humanoid.Health -= damage
task.spawn(function() TakeDamage:InvokeServer(damage) end)
how do i make it so updating the value on the server's side doesn't cause flickering?
** You are now Level 3! **