Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Im cloning a character , and does error because its nil?

Asked by 5 years ago

hello , im doing a script for script builder im trying to do an anti death and it has to clone the character but it only drops an error when trying to parent it

"20:40:09.345 - local cl = workspace.maumaumaumaumaumau:Clone() cl.Parent = workspace:1: attempt to index local 'cl' (a nil value) 20:40:09.348 - Stack Begin 20:40:09.351 - Script 'local cl = workspace.maumaumaumaumaumau:Clone() cl.Parent = workspace', Line 1 20:40:09.355 - Stack End"

this is the script i used

local cl = workspace.maumaumaumaumaumau:Clone()
cl.Parent = workspace
for i,v in pairs(cl:GetChildren()) do
    if v:IsA("Script") then
        v.Disabled = true
    end
end
1
The archiveable property of the character is false by default, which means that you can't clone it. theking48989987 2147 — 5y
0
OHHH , Thanks maumaumaumaumaumau 98 — 5y
0
ok maumaumaumaumaumua 628 — 4y

1 answer

Log in to vote
1
Answered by 5 years ago

Make it archivable

0
shortest answer in Scripting Helpers history xD DeceptiveCaster 3761 — 5y
0
it was simple lol AidanTES 36 — 5y
Ad

Answer this question