local money = 9e9 local replicatedStorage = game:GetService("ReplicatedStorage") local collectItem = replicatedStorage:WaitForChild("CollectItem") local workspace = game:GetService("Workspace") local players = game:GetService("Players") local localPlayer = players.LocalPlayer local starterGUI = game:GetService("StarterGui") local function sendNotification(title, desc) starterGUI:SetCore("SendNotification", { Title = title, Text = desc }) end -- Tycoon Suche mit Xeno-Sicherheitschecks local tycoon = nil for _, i in pairs(workspace:GetChildren()) do if i.Name == 'Tycoon' and i:FindFirstChild("Owner") and i.Owner.Value == localPlayer.Name then tycoon = i break end end if not tycoon then sendNotification("Error", "Your Tycoon was not found!") return end local bought = tycoon:FindFirstChild("Bought") local atm = bought and bought:FindFirstChild("CollectATM") or nil if not atm then sendNotification("You do not own an ATM", "Complete the tutorial of the game first") return end -- Xeno-kompatible Erkennung für getupvalue local getUpvalueFn = nil if type(getupvalue) == 'function' then getUpvalueFn = getupvalue elseif type(debug) == 'table' and type(debug.getupvalue) == 'function' then getUpvalueFn = debug.getupvalue end -- Xeno-kompatible Erkennung für getconnections local getConnectionsFn = nil if type(getconnections) == 'function' then getConnectionsFn = getconnections elseif type(debug) == 'table' and type(debug.getconnections) == 'function' then getConnectionsFn = debug.getconnections end -- Hauptlogik if getUpvalueFn and getConnectionsFn then local success, connections = pcall(getConnectionsFn, collectItem.OnClientEvent) if success and type(connections) == "table" then for _, conn in pairs(connections) do -- Xeno nutzt oft .Function oder .Listener local func = conn.Function or conn.Listener if func and type(func) == "function" then local upvalueSuccess, upvalueValue = pcall(getUpvalueFn, func, 1) if upvalueSuccess and upvalueValue then getgenv().key = upvalueValue end end end end end -- Fallback, falls getconnections in Xeno blockiert ist if not getgenv().key then if tyranny == nil and not getgenv().listening then getgenv().listening = true collectItem.OnClientEvent:Connect(function(pass) if not getgenv().key then local args = { money, atm, pass } collectItem:FireServer(unpack(args)) sendNotification("Money should be in the ATM", "If you don't see any money please contact the developer") end getgenv().key = pass end) sendNotification("Money is on its way", "Let an ore drop get into the furnace (Method 2)") end end -- Wenn Key vorhanden, direkt feuern if getgenv().key then local args = { money, atm, getgenv().key } collectItem:FireServer(unpack(args)) sendNotification("Money should be in the ATM", "Check your Tycoon!") end