I want to make a main script clone into the ScriptReplicatedStorage when the background has a transparency of 1, but it just doesn't clone. Can anyone help me with my problem?

local startergui = game:GetService('StarterGui')
local intro = startergui.Intro
local background = intro.Background
if script.Parent.Archivable == true then 
	local replicatedstorage = game:GetService('ReplicatedStorage')
	local scriptstorage = replicatedstorage:WaitForChild('DiscardedScripts')
	local main = scriptstorage:WaitForChild('Main')
	local serverscriptstorage = script.Parent
	if background.BackgroundTransparency == 1 then
	main:Clone().Parent = serverscriptstorage
	elseif background.BackgroundTransparency == 0 then
		main = nil
	end
end