local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))() local Window = Rayfield:CreateWindow({ Name = "Auto Ticket Menu", LoadingTitle = "Caricamento in corso...", LoadingSubtitle = "by Rayfield", ConfigurationSaving = { Enabled = false }, KeySystem = false, }) local Tab = Window:CreateTab("Main", 4483362458) local Section = Tab:CreateSection("Funzioni Auto") Tab:CreateButton({ Name = "Auto Ticket", Callback = function() local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local humanoidRootPart = character:WaitForChild("HumanoidRootPart") -- Variabile per tracciare se il giocatore è morto local isDead = false local connection connection = humanoid.Died:Connect(function() isDead = true if connection then connection:Disconnect() end end) -- Cerca la cartella "Tickets" ovunque nel gioco local ticketsFolder = game:FindFirstChild("Tickets", true) if ticketsFolder then local ticketsList = {} -- Filtra i modelli che iniziano con "Ticket" for _, item in ipairs(ticketsFolder:GetChildren()) do if item.Name:match("^Ticket") then table.insert(ticketsList, item) end end -- Ordina i ticket in base al numero (Ticket1, Ticket2, ..., Ticket10, Ticket11) table.sort(ticketsList, function(a, b) local numA = tonumber(a.Name:match("%d+")) or 0 local numB = tonumber(b.Name:match("%d+")) or 0 return numA < numB end) -- Teletrasporto in sequenza con intervallo di 1.0 secondo for _, ticketModel in ipairs(ticketsList) do -- Controlla se il giocatore è morto o ha cambiato personaggio per fermare il ciclo if isDead or not player.Character or player.Character ~= character or humanoid.Health <= 0 then break end local targetPart = ticketModel:FindFirstChild("Ticket") if not targetPart and ticketModel:IsA("Model") then targetPart = ticketModel.PrimaryPart or ticketModel:FindFirstChildWhichIsA("BasePart") elseif ticketModel:IsA("BasePart") then targetPart = ticketModel end if targetPart then humanoidRootPart.CFrame = targetPart.CFrame + Vector3.new(0, 3, 0) task.wait(1.0) -- Attende esattamente 1.0 secondo prima del prossimo ticket end end if connection then connection:Disconnect() end if not isDead then Rayfield:Notify({ Title = "Completato", Content = "Hai raggiunto tutti i ticket!", Duration = 3.5, Image = 4483362458, }) end else if connection then connection:Disconnect() end Rayfield:Notify({ Title = "Errore", Content = "Impossibile trovare la cartella 'Tickets' nel gioco!", Duration = 3.5, Image = 4483362458, }) end end, })