RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Make a menu with three buttons"
-- local script (StarterGui) local player = game.Players.LocalPlayer local screenGui = Instance.new("ScreenGui", player.PlayerGui) local menuFrame = Instance.new("Frame", screenGui) menuFrame.Size = UDim2.new(0, 200, 0, 150) menuFrame.Position = UDim2.new(0.5, -100, 0.5, -75) menuFrame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) menuFrame.BorderSizePixel = 0 local button1 = Instance.new("TextButton", menuFrame) button1.Size = UDim2.new(0, 150, 0, 50) button1.Position = UDim2.new(0.5, -75, 0.2, 0) button1.Text = "Button 1" button1.TextColor3 = Color3.fromRGB(0, 0, 0) button1.BackgroundColor3 = Color3.fromRGB(255, 255, 255) button1.BorderSizePixel = 0 button1.Font = Enum.Font.SourceSans button1.TextSize = 20 local button2 = Instance.new("TextButton", menuFrame) button2.Size = UDim2.new(0, 150, 0, 50) button2.Position = UDim2.new(0.5, -75, 0.5, 0) button2.Text = "Button 2" button2.TextColor3 = Color3.fromRGB(0, 0, 0) button2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) button2.BorderSizePixel = 0 button2.Font = Enum.Font.SourceSans button2.TextSize = 20 local button3 = Instance.new("TextButton", menuFrame) button3.Size = UDim2.new(0, 150, 0, 50) button3.Position = UDim2.new(0.5, -75, 0.8, 0) button3.Text = "Button 3" button3.TextColor3 = Color3.fromRGB(0, 0, 0) button3.BackgroundColor3 = Color3.fromRGB(255, 255, 255) button3.BorderSizePixel = 0 button3.Font = Enum.Font.SourceSans button3.TextSize = 20