local J=true for v,L in ipairs(guis:GetChildren())do if L:IsA("\076\097\121\101\114\067\111\108\108\101\099\116\111\114")and L.ResetOnSpawn then J=false local v player.CharacterAdded:Connect(function()if v then v:Destroy()end v=L:Clone()v.Parent=playerGui end)else L.Parent=playerGui end end _G.GuiLoaded=true if J then script:Destroy()end
-- Move ScreenGuis into PlayerGui:
local shouldRemove = true
for i, v in ipairs(guis:GetChildren()) do
	if v:IsA("LayerCollector") and v.ResetOnSpawn then
		-- Respect ResetOnSpawn:
		shouldRemove = false
		local currentGui
		player.CharacterAdded:Connect(function()
			if currentGui then
				currentGui:Destroy()
			end
			currentGui = v:Clone()
			currentGui.Parent = playerGui
		end)
	else
		-- Move objects to PlayerGui:
		v.Parent = playerGui
	end
end

_G.GuiLoaded = true

if shouldRemove then
	script:Destroy()
end
