Is it possible to clone Scripts in Roblox? I've tried for a bit and getting no errors but it's not working.
while task.wait() do
if script.Parent.Parent.Scripts.BackgroundColor3 == Color3.new(0.466667, 0.866667, 0.466667) then
local clonething = script.Parent.Parent.Scripts.CloneDis
local part = script.Parent.Parent.Scripts.CloneDis:Clone()
print('ea') -- this prints in the console but nothing is cloned to the folder
part.Parent = clonething.Parent.ScriptFolder
end end
I am trying to clone inside of a ui if that helps.