--BROUGHT TO YOU BY RobloxScripter.com!--
spawn(function()
while wait(2) do
game:GetService("ReplicatedStorage").RE.emptyCollector:InvokeServer()
end
end)
spawn(function()
local tyconas
for a, b in pairs(workspace.Tycoon.Tycoons:GetChildren()) do
if b.Owner.Value == game.Players.LocalPlayer.Name then
tyconas = b
end
end
while wait(.3) do
for i, v in pairs(workspace.Tycoon.Tycoons[tostring(tyconas)].Buttons:GetChildren()) do
if v.Config.Gamepass.Value == false and v.Config.Owned.Value == false then
local money = game.Players.LocalPlayer.leaderstats.Money.Value
if money >= v.Config.Cost.Value then
local args = {
[1] = v
}
game:GetService("ReplicatedStorage").RE.purchaseButton:InvokeServer(unpack(args))
v.Config.Owned.Value = true
end
end
end
end
end)