local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local localPlayer = Players.LocalPlayer -- 1. TẠO CẤU TRÚC GIAO DIỆN (GUI) local screenGui = Instance.new("ScreenGui") screenGui.Name = "GuiBadkidAndGemini" screenGui.ResetOnSpawn = false screenGui.Parent = localPlayer:WaitForChild("PlayerGui") -- Khung Menu Chính (Thiết kế bo góc hiện đại) local mainFrame = Instance.new("Frame") mainFrame.Name = "MainFrame" mainFrame.Size = UDim2.new(0, 220, 0, 130) mainFrame.Position = UDim2.new(0.5, -110, 0.4, -65) -- Căn giữa màn hình mainFrame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) mainFrame.BorderSizePixel = 0 mainFrame.Active = true mainFrame.Draggable = true -- Cho phép kéo thả menu trên màn hình mainFrame.Parent = screenGui local uiCorner = Instance.new("UICorner", mainFrame) uiCorner.CornerRadius = UDim.new(0, 12) -- Tiêu đề GUI local titleLabel = Instance.new("TextLabel") titleLabel.Size = UDim2.new(1, 0, 0, 35) titleLabel.Text = "fe hd admin by badkid👀" titleLabel.TextColor3 = Color3.fromRGB(255, 255, 255) titleLabel.TextSize = 14 titleLabel.Font = Enum.Font.SourceSansBold titleLabel.BackgroundColor3 = Color3.fromRGB(45, 45, 45) titleLabel.Parent = mainFrame local titleCorner = Instance.new("UICorner", titleLabel) titleCorner.CornerRadius = UDim.new(0, 12) -- Nút "Kích hoạt" local activateBtn = Instance.new("TextButton") activateBtn.Name = "ActivateButton" activateBtn.Size = UDim2.new(0.8, 0, 0, 40) activateBtn.Position = UDim2.new(0.1, 0, 0.5, -10) activateBtn.Text = "Kích hoạt" activateBtn.TextColor3 = Color3.fromRGB(255, 255, 255) activateBtn.TextSize = 16 activateBtn.Font = Enum.Font.SourceSansBold activateBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 100) -- Màu xanh lá nổi bật activateBtn.Parent = mainFrame local btnCorner = Instance.new("UICorner", activateBtn) btnCorner.CornerRadius = UDim.new(0, 8) -- 2. XỬ LÝ LOGIC KHI BẤM NÚT activateBtn.MouseButton1Click:Connect(function() -- Đổi màu nút tạm thời để báo hiệu đã bấm thành công activateBtn.BackgroundColor3 = Color3.fromRGB(0, 120, 70) task.wait(0.1) activateBtn.BackgroundColor3 = Color3.fromRGB(0, 170, 100) -- Thực thi các tham số truyền lên hệ thống quản lý map (mapManagerRemote) local remoteEvents = ReplicatedStorage:WaitForChild("RemoteEvents", 5) if remoteEvents then local mapManagerRemote = remoteEvents:WaitForChild("mapManagerRemote", 5) if mapManagerRemote then local args = { "buyAdmin", "Mod", 0 } mapManagerRemote:FireServer(unpack(args)) else warn("Không tìm thấy RemoteEvent: mapManagerRemote") end else warn("Không tìm thấy thư mục: RemoteEvents trong ReplicatedStorage") end end)