Literally why doesn't this work

All this does is literally just clone the scripts and destroy the old ones. IT IS NOT CLONING. (printed and it isn’t nil) i tried modules EVEYTHING I WILL RIP MY HAIR OUT

for _, scripts in pairs(workspace.LoadedMaps:GetDescendants()) do
	if scripts:IsA("Script") and scripts.Enabled == false then
		local clone = scripts:Clone()
		clone.Enabled = true
	end
end
task.wait(0.2)
for _, scripts in pairs (workspace.LoadedMaps:GetDescendants()) do
	if scripts:IsA("Script") and scripts.Enabled == false then
		scripts:Destroy()
	end
end
script.Enabled = false

You don’t parent the scripts anywhere ? I’m guessing you’d have to do

for _, scripts in pairs(workspace.LoadedMaps:GetDescendants()) do
	if scripts:IsA("Script") and scripts.Enabled == false then
		local clone = scripts:Clone()
		clone.Enabled = true
        clone.Parent = workspace.LoadedMaps  --(or whatever you wanna place them in)
	end
end
task.wait(0.2)
for _, scripts in pairs (workspace.LoadedMaps:GetDescendants()) do
	if scripts:IsA("Script") and scripts.Enabled == false then
		scripts:Destroy()
	end
end
script.Enabled = false
1 Like

no like i need them to be in the same place because i need to fully restart the scripts lol

you can’t clone something and not parent it. it won’t appear

1 Like

oh my god i will have a stroke i swear-

i am about to scream and rip my hair out thank you

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