Загрузка данных


local button = script.Parent
local textBox = button.Parent:FindFirstChildOfClass("TextBox") -- Поле, куда вводить ник
local remote = game.ReplicatedStorage:WaitForChild("GiveAdminEvent")

button.MouseButton1Click:Connect(function()
    if textBox and textBox.Text ~= "" then
        remote:FireServer(textBox.Text)
    end
end)