Stupid code doesnt work even if i tried it a month ago and it worked

i have been TRYING to making this stupid piece of code work, i tried it in so many scripts to see if i could make it work but it gives me the same answer, “attempt to index nil with parent” message and breaks the entire code, no my other code is not the issue, i tried it before like a month ago and it worked and decided to reuse it but it just doesnt work now. how do i fix it???

local clone = rig:Clone()
clone.Parent = workspace
rig:Destroy()

It’s because you’re destroying the rig and not the clone

im not trying to destroy the clone, im trying to put the clone into the workspace and replace then delete the actual rig itself because ive seen so many other games with ragdoll stuff do that and this is the simplest way i can do it.

Oh I see, then if the rigs are player characters you should set the Archivable property on them to true

thank you.‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.