Help! Clone() function broken?

image
screenshot of code from the official Clone() function page on DevHub | Roblox.

i tried to make an after-image effect then found out about this.

As of 7/10/21, the Clone() function seems to break when setting a cloned instance to workspace or other instances.

I have no clue why this happens!
Could anyone look into this and see if they’re experiencing the same thing?

image
15:36:31.976 Workspace.Script:6: attempt to index nil with ‘Parent’ - Server - Script:6
15:36:31.977 Stack Begin - Studio
15:36:31.977 Script ‘Workspace.Script’, Line 6 - Studio - Script:6
15:36:31.977 Stack End - Studio

Edit: Solved!
Huge thanks to SOTR654 for providing me with a tip about archiving!

Make sure your “original” variable exists. It’s trying to index the nil object

It does exist, it uses my character model in-game but says it’s nil.

Activate Archivable before cloning

original.Archivable = true
local copy = original:Clone()

I’ll try it, thank you so much.

Oh right! The character is always not archivable by default!

1 Like