
443 Views
6.3k Executions
HEITOR HUB ADMIN
Script hub
Heitorlucas487yyyFirst script
4 months ago
Please login to perform these actions:Does it work?
No reports yetNo reports yet. Tried it? Be the first to say.
Also noticed:
Description
Adm
Supported games 1
Brookhaven RP
All scriptsNo features listed for this game yet.
Works in: Brookhaven RP
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
0Log in to join the conversation. Login
No comments yet. Be the first!![[☀️UPD 21🏖️] Anime Adventures](/images/script/8304191830-1794105732113.png)




