Deflating a ragdoll's head from server file (Serious Edition)

I know that most of the methods I’ll have to use are client side, that’s why I am asking.


target:Kill()
local ragdoll = target:GetRagdollEntity()
for k, v in ipairs (player.GetAll()) do
v:SendLua("local bone = Entity(" .. ragdoll:EntIndex() .. "):GetBoneMatrix(6); bone:Scale(Vector(0, 0, 0)); Entity(" .. ragdoll:EntIndex() .. "):SetBoneMatrix(6, bone)")
end

It says the entity is NULL.

How about replacing “Entity(ragdoll:EntIndex())” with just ragdoll?

But this wasn’t necessary of a new thread.

You see sendlua won’t import the locals from the server script, unless you concatenate them.