RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"make a shop gui where i can add gamepasses and the colour theme should be blue"
-- local script (StarterGUI) local player = game.Players.LocalPlayer local screenGui = Instance.new("ScreenGui", player.PlayerGui) local background = Instance.new("Frame", screenGui) background.BackgroundColor3 = Color3.fromRGB(0, 0, 255) local shopTitle = Instance.new("TextLabel", background) shopTitle.Text = "Shop" shopTitle.TextColor3 = Color3.fromRGB(255, 255, 255) shopTitle.BackgroundColor3 = Color3.fromRGB(0, 0, 255) local gamepasses = {"Gamepass1", "Gamepass2", "Gamepass3"} -- add or remove gamepasses here for i, gamepass in pairs(gamepasses) do local gamepassButton = Instance.new("TextButton", background) gamepassButton.Name = gamepass gamepassButton.Text = gamepass gamepassButton.TextColor3 = Color3.fromRGB(255, 255, 255) gamepassButton.BackgroundColor3 = Color3.fromRGB(0, 0, 255) gamepassButton.Position = UDim2.new(0, 0, 0, i * 50) -- adjust the position for each gamepass button end