I’m working on a zombie infection system, however i noticed recently, that when the script(server side) changes the bodycolor of a player, the game stutters(on client side).
I checked the microprofiler and all i saw at the frames when the color was changed were 2 long lines, “RenderJob” and “Worker”.
I know that this is causing the issue, because when i removed the part of the code that changes bodycolor, the stutter disappeared completely.
This is very annoying because when someone is infected you lag every second(as the infection progresses) and it makes the game kinda unplayable.
Images:
This is the part of the code that changes the bodycolor.