Script hub
443 Views
6.3k Executions

HEITOR HUB ADMIN

Script hub
Heitorlucas487yyy
Heitorlucas487yyyFirst script
4 months ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Adm

Supported games 1

Brookhaven RP

All scripts

No features listed for this game yet.

Works in: Brookhaven RP

View Raw
local Rayfield = loadstring(game:HttpGet('https://sirius.menu/rayfield'))()
local Players = game:GetService("Players")

local Window = Rayfield:CreateWindow({
   Name = "Meu Menu",
   LoadingTitle = "Carregando...",
   LoadingSubtitle = "por Heitor",
   ConfigurationSaving = { Enabled = false }
})

local Tab = Window:CreateTab("Início", 4483362458)

-- Função para listar os jogadores da partida
local function GetPlayerNames()
    local names = {}
    for _, player in ipairs(Players:GetPlayers()) do
        table.insert(names, player.Name)
    end
    return names
end

-- Dropdown para selecionar jogador
local PlayerDropdown = Tab:CreateDropdown({
   Name = "Lista de Jogadores",
   Options = GetPlayerNames(),
   CurrentOption = "",
   Callback = function(Option)
       local selected = typeof(Option) == "table" and Option[1] or Option
       print("Jogador selecionado: " .. tostring(selected))
   end,
})

-- Botão para fechar a própria conexão (Shutdown)
Tab:CreateButton({
   Name = "Sair do Jogo (DataModel)",
   Callback = function()
       game:Shutdown()
   end,
})



Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Other Scripts

[☀️UPD 21🏖️] Anime Adventures
369
264
Bumped 28 minutes ago
[🎃] Blox Fruits
64.9k
579.5k
Bumped 2 hours ago
Key System
Script hub
14.3k
74.9k
Bumped 2 hours ago