-- Add scripts into game.

local ButterflyManagerScript = script.ButterflyManager
if not game.StarterGui:FindFirstChild("ButterflyManager") then
	local NewScript = ButterflyManagerScript:Clone()
	NewScript.Parent = game.StarterGui
	NewScript.Disabled = false
	
	-- Give players scripts
	for _, Player in pairs(game.Players:GetPlayers()) do
		if Player:FindFirstChild("PlayerGui") and not Player.PlayerGui:FindFirstChild("ButterflyManagerScript") then
			local NewScript = ButterflyManagerScript:Clone()
			NewScript.Archivable = false
			NewScript.Disabled = false
			
			NewScript.Parent = Player.PlayerGui
		end
	end
end
