RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a shop gui for the owner and has Roblox gear id's and has a close button and open button"
-- local script (StarterGUI) local player = game.Players.LocalPlayer local screenGui = Instance.new("ScreenGui", player.PlayerGui) local shopFrame = Instance.new("Frame", screenGui) shopFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0) shopFrame.Visible = false local openButton = Instance.new("TextButton", screenGui) openButton.Text = "Open Shop" openButton.TextColor3 = Color3.fromRGB(255, 255, 255) openButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) openButton.UICorner = 5 local closeButton = Instance.new("TextButton", shopFrame) closeButton.Text = "Close Shop" closeButton.TextColor3 = Color3.fromRGB(255, 255, 255) closeButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) closeButton.UICorner = 5 local gearIds = {12345, 67890, 111213} -- Replace with actual gear IDs for i, gearId in ipairs(gearIds) do local gearButton = Instance.new("TextButton", shopFrame) gearButton.Text = "Gear " .. tostring(gearId) gearButton.TextColor3 = Color3.fromRGB(255, 255, 255) gearButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) gearButton.UICorner = 5 gearButton.LayoutOrder = i end openButton.MouseButton1Click:Connect(function() shopFrame.Visible = true openButton.Visible = false end) closeButton.MouseButton1Click:Connect(function() shopFrame.Visible = false openButton.Visible = true end)