local I=require(script.Parent:WaitForChild("\080\108\097\121\101\114\083\116\097\116\077\097\110\097\103\101\114"))local R=game:GetService("\083\101\114\118\101\114\083\116\111\114\097\103\101")local C=game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")local y=R:WaitForChild("\080\108\097\121\101\114\077\111\110\101\121")local q=content.PurchaseHandlerNew local k=game:GetService("\080\108\097\121\101\114\115")local l=game:GetService("\082\117\110\083\101\114\118\105\099\101")local B=game:GetService("\083\116\097\114\116\101\114\071\117\105")local h={}local d=require(script.Parent.Settings)local f=require(script.Settings)local Z=f.Rebirth local G=f.Test local H=content:WaitForChild("\082\101\098\105\114\116\104\069\118\101\110\116 \040\068\111\110\'\116 \077\111\118\101\041")local L=content:WaitForChild("\084\111\117\099\104\065\108\108\084\121\099\111\111\110\066\117\116\116\111\110\115")local K=content:WaitForChild("\071\105\118\101\067\097\115\104")local D=content:WaitForChild("\082\101\098\105\114\116\104\071\117\105 \040\068\111\110\'\116 \077\111\118\101\041")local e=content:FindFirstChild("\084\111\117\099\104\084\121\099\111\111\110\066\117\116\116\111\110\115")H.Parent=C if e then if l:IsStudio()or G.showTouchTycoonButtonsGuiOutsideStudio then L.Parent=C K.Parent=C e.Parent=B else L:Destroy()K:Destroy()e:Destroy()end end local F={}for I,R in pairs((script.Parent:WaitForChild("\084\121\099\111\111\110\115")):GetChildren())do F[R.Name]=R:Clone()end


local PlayerStatManager = require(script.Parent:WaitForChild("PlayerStatManager"))

local serverStorage = game:GetService("ServerStorage")
local replicatedStorage = game:GetService("ReplicatedStorage")
local playerMoney = serverStorage:WaitForChild("PlayerMoney")
local purchaseHandlerNew = content.PurchaseHandlerNew
local players = game:GetService("Players")
local runService = game:GetService("RunService")
local staterGui = game:GetService("StarterGui")

local allObjects = {}

local TycoonSettings = require(script.Parent.Settings)

local Settings = require(script.Settings)
local RebirthSettings = Settings.Rebirth
local TestSettings = Settings.Test

local rebirthEvent = content:WaitForChild("RebirthEvent (Don't Move)")
local touchAllTycoonButtons = content:WaitForChild("TouchAllTycoonButtons")
local giveCashEvent = content:WaitForChild("GiveCash")
local rebirthGui = content:WaitForChild("RebirthGui (Don't Move)")
local touchTycoonButtonsGui = content:FindFirstChild("TouchTycoonButtons")

rebirthEvent.Parent = replicatedStorage
if touchTycoonButtonsGui then
	if runService:IsStudio() or TestSettings.showTouchTycoonButtonsGuiOutsideStudio then
		touchAllTycoonButtons.Parent = replicatedStorage
		giveCashEvent.Parent = replicatedStorage
		touchTycoonButtonsGui.Parent = staterGui 
	else
		touchAllTycoonButtons:Destroy()
		giveCashEvent:Destroy()
		touchTycoonButtonsGui:Destroy()
	end
end
local AllTycoons = {}
for i,v in pairs(script.Parent:WaitForChild('Tycoons'):GetChildren()) do
	AllTycoons[v.Name] = v:Clone()
end
