Right now I am making a ability that will boost the player’s Speed, Damage, and Health. Everything is going fine except the player’s speed, whenever I try to add 8 WalkSpeed to the player’s current WalkSpeed it adds 12.971 WalkSpeed
since this is such an odd thing I couldn’t really find anything to help (However I didn’t search that long either because I was about to go to bed)
and also if anyone does find a solution make sure it adds on to the current WalkSpeed and not sets WalkSpeed
Well, to fix this, in my opinion, i would replace the current code with this code, to ensure that the character is added, then we wait for the humanoid, this is inside of a ServerScript of course.
Problems with changing a player’s walkspeed from a server script are often caused by a local script changing the walkspeed of the player at a different time (the walkspeed will appear to change but the actual value is not replicated to the humanoid on the server). This causes a desync between the server and the client, where the server does not detect the localscript changing the walkspeed of the player, and when the server then updates the walkspeed it will update incorrectly.
Sorry, I Should’ve gone more in-depth, so the code I’ve shown happens from an event fired from a local script when a player presses the number 2 on their keyboard, it already knows the character, it just won’t change the walkspeed properly, whenever I want to make it add 8 it adds 12.971