Garry's Mod

Garry's Mod

Ragdoll colorizer
question on lua and coloring ragdolls
hey im kinda new to gmod lua, i've mainly messed with blueprints and not the actual text based coding. im trying to apply the players color to a ragdoll that spawns when they die. i've decompiled a ton of addons that do this and tried to read their code to see what to do but its so spread out and i guess i just don't have the experience to figure out what i need to do.

could you explain like what the goal of the code is or if theres some trick? the most i've figured out is that i think i need to send a network request to the client to change the color but also on the wiki it mentions making the ragdoll into the player? idk, any help would be great.