Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 6 months 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 2009 — 6mo
0
OHHH , Thanks maumaumaumaumaumau 98 — 6mo

1 answer

Log in to vote
1
Answered by 6 months ago

Make it archivable

0
shortest answer in Scripting Helpers history xD BashCaster 2324 — 6mo
0
it was simple lol AidanTES -9 — 5mo
Ad

Answer this question