i want a rough ui skecth
- User
i want a rough ui skecth
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
i want a rough ui skecth
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Absolutely! Here’s a rough text-based UI sketch for your Roblox shop, showing how the elements are laid out. You can use this as a reference when building your GUI in Roblox Studio.
+-------------------------------------------------------------+
| [ SHOP ] |
|-------------------------------------------------------------|
| [X] Close |
|-------------------------------------------------------------|
| | Boxer | Capoeira | Juggernaut | |
| |-------------|-------------|--------------| |
| | [Icon] | [Icon] | [Icon] | |
| | Boxer | Capoeira | Juggernaut | |
| | Buy: $500 | Buy: $1200 | Buy: $2500 | |
| | [Buy Btn] | [Buy Btn] | [Buy Btn] | |
| |-------------|-------------|--------------| |
| |
| (Scroll for more styles if needed) |
+-----------------------------------------------------------+
Visible = false)
+-----------------------------+
| SHOP [X] |
|-----------------------------|
| [Icon] Boxer Buy: $500 |
| [Buy] |
|-----------------------------|
| [Icon] Capoeira Buy: $1200 |
| [Buy] |
|-----------------------------|
| [Icon] Juggernaut Buy: $2500|
| [Buy] |
|-----------------------------|
| (Scroll for more) |
+-----------------------------+
Tip:
If you want a quick hand-drawn sketch (image), let me know and I can generate one for you!
can you give me a script that can generate a ui
Absolutely! Here’s a script that will generate a simple shop UI in Roblox Studio using code. This script will create a shop frame, a close button, and a few example item buttons dynamically. You can expand on this for your needs.
How to use:
StarterGui.-- LocalScript in StarterGui
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
-- Shop items data
local shopItems = {
{Name = "Boxer", Price = 500},
{Name = "Capoeira", Price = 1200},
{Name = "Juggernaut", Price = 2500},
}
-- Create the main shop frame
local shopFrame = Instance.new("Frame")
shopFrame.Name = "ShopFrame"
shopFrame.Size = UDim2.new(0, 400, 0, 350)
shopFrame.Position = UDim2.new(0.5, -200, 0.5, -175)
shopFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
shopFrame.BorderSizePixel = 0
shopFrame.Visible = false
shopFrame.Parent = playerGui
-- UICorner for rounded edges
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 12)
corner.Parent = shopFrame
-- Shop title
local title = Instance.new("TextLabel")
title.Text = "SHOP"
title.Size = UDim2.new(1, 0, 0, 40)
title.BackgroundTransparency = 1
title.Font = Enum.Font.GothamBold
title.TextSize = 32
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.Parent = shopFrame
-- Close button
local closeBtn = Instance.new("TextButton")
closeBtn.Text = "X"
closeBtn.Size = UDim2.new(0, 40, 0, 40)
closeBtn.Position = UDim2.new(1, -45, 0, 5)
closeBtn.BackgroundColor3 = Color3.fromRGB(200, 60, 60)
closeBtn.TextColor3 = Color3.new(1,1,1)
closeBtn.Font = Enum.Font.GothamBold
closeBtn.TextSize = 24
closeBtn.Parent = shopFrame
closeBtn.MouseButton1Click:Connect(function()
shopFrame.Visible = false
end)
-- Open shop button
local openBtn = Instance.new("TextButton")
openBtn.Text = "SHOP"
openBtn.Size = UDim2.new(0, 120, 0, 40)
openBtn.Position = UDim2.new(1, -130, 1, -60)
openBtn.BackgroundColor3 = Color3.fromRGB(60, 180, 80)
openBtn.TextColor3 = Color3.new(1,1,1)
openBtn.Font = Enum.Font.GothamBold
openBtn.TextSize = 24
openBtn.Parent = playerGui
openBtn.MouseButton1Click:Connect(function()
shopFrame.Visible = true
end)
-- ScrollingFrame for items
local scroll = Instance.new("ScrollingFrame")
scroll.Size = UDim2.new(1, -20, 1, -60)
scroll.Position = UDim2.new(0, 10, 0, 50)
scroll.BackgroundTransparency = 1
scroll.CanvasSize = UDim2.new(0, 0, 0, #shopItems * 80)
scroll.ScrollBarThickness = 8
scroll.Parent = shopFrame
local layout = Instance.new("UIListLayout")
layout.Padding = UDim.new(0, 10)
layout.Parent = scroll
-- Generate item buttons
for i, item in ipairs(shopItems) do
local itemFrame = Instance.new("Frame")
itemFrame.Size = UDim2.new(1, -10, 0, 70)
itemFrame.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
itemFrame.Parent = scroll
local nameLabel = Instance.new("TextLabel")
nameLabel.Text = item.Name
nameLabel.Size = UDim2.new(0.5, 0, 1, 0)
nameLabel.BackgroundTransparency = 1
nameLabel.Font = Enum.Font.Gotham
nameLabel.TextSize = 24
nameLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
nameLabel.Position = UDim2.new(0, 10, 0, 0)
nameLabel.TextXAlignment = Enum.TextXAlignment.Left
nameLabel.Parent = itemFrame
local priceLabel = Instance.new("TextLabel")
priceLabel.Text = "Buy: $" .. item.Price
priceLabel.Size = UDim2.new(0.3, 0, 1, 0)
priceLabel.Position = UDim2.new(0.5, 0, 0, 0)
priceLabel.BackgroundTransparency = 1
priceLabel.Font = Enum.Font.Gotham
priceLabel.TextSize = 20
priceLabel.TextColor3 = Color3.fromRGB(200, 200, 0)
priceLabel.Parent = itemFrame
local buyBtn = Instance.new("TextButton")
buyBtn.Text = "Buy"
buyBtn.Size = UDim2.new(0, 60, 0, 40)
buyBtn.Position = UDim2.new(1, -70, 0.5, -20)
buyBtn.BackgroundColor3 = Color3.fromRGB(80, 180, 80)
buyBtn.TextColor3 = Color3.new(1,1,1)
buyBtn.Font = Enum.Font.GothamBold
buyBtn.TextSize = 20
buyBtn.Parent = itemFrame
buyBtn.MouseButton1Click:Connect(function()
print("You clicked to buy:", item.Name)
-- Here you would fire a RemoteEvent to the server to handle the purchase!
end)
end
it didnt work
No problem! Let’s troubleshoot and make sure you get a working, auto-generated shop UI in Roblox Studio.
Below is a step-by-step, copy-paste ready LocalScript that you can use.
Follow these instructions exactly:
ShopUIScript (or any name you like).-- LocalScript in StarterGui
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
-- Shop items data
local shopItems = {
{Name = "Boxer", Price = 500},
{Name = "Capoeira", Price = 1200},
{Name = "Juggernaut", Price = 2500},
}
-- Create the main shop frame
local shopFrame = Instance.new("Frame")
shopFrame.Name = "ShopFrame"
shopFrame.Size = UDim2.new(0, 400, 0, 350)
shopFrame.Position = UDim2.new(0.5, -200, 0.5, -175)
shopFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
shopFrame.BorderSizePixel = 0
shopFrame.Visible = false
shopFrame.Parent = playerGui
-- UICorner for rounded edges
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 12)
corner.Parent = shopFrame
-- Shop title
local title = Instance.new("TextLabel")
title.Text = "SHOP"
title.Size = UDim2.new(1, 0, 0, 40)
title.Position = UDim2.new(0, 0, 0, 0)
title.BackgroundTransparency = 1
title.Font = Enum.Font.GothamBold
title.TextSize = 32
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.Parent = shopFrame
-- Close button
local closeBtn = Instance.new("TextButton")
closeBtn.Text = "X"
closeBtn.Size = UDim2.new(0, 40, 0, 40)
closeBtn.Position = UDim2.new(1, -45, 0, 5)
closeBtn.BackgroundColor3 = Color3.fromRGB(200, 60, 60)
closeBtn.TextColor3 = Color3.new(1,1,1)
closeBtn.Font = Enum.Font.GothamBold
closeBtn.TextSize = 24
closeBtn.Parent = shopFrame
closeBtn.MouseButton1Click:Connect(function()
shopFrame.Visible = false
end)
-- Open shop button
local openBtn = Instance.new("TextButton")
openBtn.Text = "SHOP"
openBtn.Size = UDim2.new(0, 120, 0, 40)
openBtn.Position = UDim2.new(1, -130, 1, -60)
openBtn.BackgroundColor3 = Color3.fromRGB(60, 180, 80)
openBtn.TextColor3 = Color3.new(1,1,1)
openBtn.Font = Enum.Font.GothamBold
openBtn.TextSize = 24
openBtn.Parent = playerGui
openBtn.MouseButton1Click:Connect(function()
shopFrame.Visible = true
end)
-- ScrollingFrame for items
local scroll = Instance.new("ScrollingFrame")
scroll.Size = UDim2.new(1, -20, 1, -60)
scroll.Position = UDim2.new(0, 10, 0, 50)
scroll.BackgroundTransparency = 1
scroll.CanvasSize = UDim2.new(0, 0, 0, #shopItems * 80)
scroll.ScrollBarThickness = 8
scroll.Parent = shopFrame
local layout = Instance.new("UIListLayout")
layout.Padding = UDim.new(0, 10)
layout.Parent = scroll
-- Generate item buttons
for i, item in ipairs(shopItems) do
local itemFrame = Instance.new("Frame")
itemFrame.Size = UDim2.new(1, -10, 0, 70)
itemFrame.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
itemFrame.Parent = scroll
local nameLabel = Instance.new("TextLabel")
nameLabel.Text = item.Name
nameLabel.Size = UDim2.new(0.5, 0, 1, 0)
nameLabel.Position = UDim2.new(0, 10, 0, 0)
nameLabel.BackgroundTransparency = 1
nameLabel.Font = Enum.Font.Gotham
nameLabel.TextSize = 24
nameLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
nameLabel.TextXAlignment = Enum.TextXAlignment.Left
nameLabel.Parent = itemFrame
local priceLabel = Instance.new("TextLabel")
priceLabel.Text = "Buy: $" .. item.Price
priceLabel.Size = UDim2.new(0.3, 0, 1, 0)
priceLabel.Position = UDim2.new(0.5, 0, 0, 0)
priceLabel.BackgroundTransparency = 1
priceLabel.Font = Enum.Font.Gotham
priceLabel.TextSize = 20
priceLabel.TextColor3 = Color3.fromRGB(200, 200, 0)
priceLabel.Parent = itemFrame
local buyBtn = Instance.new("TextButton")
buyBtn.Text = "Buy"
buyBtn.Size = UDim2.new(0, 60, 0, 40)
buyBtn.Position = UDim2.new(1, -70, 0.5, -20)
buyBtn.BackgroundColor3 = Color3.fromRGB(80, 180, 80)
buyBtn.TextColor3 = Color3.new(1,1,1)
buyBtn.Font = Enum.Font.GothamBold
buyBtn.TextSize = 20
buyBtn.Parent = itemFrame
buyBtn.MouseButton1Click:Connect(function()
print("You clicked to buy:", item.Name)
-- Here you would fire a RemoteEvent to the server to handle the purchase!
end)
end
it works but when I test it loads in a gui says style shop could u fix to where when I join in it shows a button called shop when I click on it it brings me to a shop
Absolutely! It sounds like you have another GUI in your game called "Style Shop" that is showing up by default, or maybe you have a pre-existing GUI that is set to visible. Let's clarify and fix your setup so only the "SHOP" button appears when you join, and the shop window only appears when you click the button.
Visible property to false by default.The script I gave you already does what you want:
If you still see another shop window on join, it is from another GUI in your game.
ShopUIScript (the LocalScript) and no other shop GUIs.If you want to be sure, you can add this line at the top of your script to remove any other shop GUIs when the player joins:
-- Add this at the very top of your ShopUIScript
for _, gui in ipairs(playerGui:GetChildren()) do
if gui:IsA("ScreenGui") and gui.Name ~= "ShopFrame" then
gui:Destroy()
end
end
Here is the final version of the script.
Delete any other shop GUIs from StarterGui first!
-- LocalScript in StarterGui
local player = game.Players.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
-- Clean up any other shop GUIs (optional)
for _, gui in ipairs(playerGui:GetChildren()) do
if gui:IsA("ScreenGui") and gui.Name ~= "ShopFrame" then
gui:Destroy()
end
end
-- Shop items data
local shopItems = {
{Name = "Boxer", Price = 500},
{Name = "Capoeira", Price = 1200},
{Name = "Juggernaut", Price = 2500},
}
-- Create the main shop frame
local shopFrame = Instance.new("Frame")
shopFrame.Name = "ShopFrame"
shopFrame.Size = UDim2.new(0, 400, 0, 350)
shopFrame.Position = UDim2.new(0.5, -200, 0.5, -175)
shopFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
shopFrame.BorderSizePixel = 0
shopFrame.Visible = false
shopFrame.Parent = playerGui
local corner = Instance.new("UICorner")
corner.CornerRadius = UDim.new(0, 12)
corner.Parent = shopFrame
local title = Instance.new("TextLabel")
title.Text = "SHOP"
title.Size = UDim2.new(1, 0, 0, 40)
title.Position = UDim2.new(0, 0, 0, 0)
title.BackgroundTransparency = 1
title.Font = Enum.Font.GothamBold
title.TextSize = 32
title.TextColor3 = Color3.fromRGB(255, 255, 255)
title.Parent = shopFrame
local closeBtn = Instance.new("TextButton")
closeBtn.Text = "X"
closeBtn.Size = UDim2.new(0, 40, 0, 40)
closeBtn.Position = UDim2.new(1, -45, 0, 5)
closeBtn.BackgroundColor3 = Color3.fromRGB(200, 60, 60)
closeBtn.TextColor3 = Color3.new(1,1,1)
closeBtn.Font = Enum.Font.GothamBold
closeBtn.TextSize = 24
closeBtn.Parent = shopFrame
closeBtn.MouseButton1Click:Connect(function()
shopFrame.Visible = false
end)
-- Open shop button
local openBtn = Instance.new("TextButton")
openBtn.Text = "SHOP"
openBtn.Size = UDim2.new(0, 120, 0, 40)
openBtn.Position = UDim2.new(1, -130, 1, -60)
openBtn.BackgroundColor3 = Color3.fromRGB(60, 180, 80)
openBtn.TextColor3 = Color3.new(1,1,1)
openBtn.Font = Enum.Font.GothamBold
openBtn.TextSize = 24
openBtn.Parent = playerGui
openBtn.MouseButton1Click:Connect(function()
shopFrame.Visible = true
end)
local scroll = Instance.new("ScrollingFrame")
scroll.Size = UDim2.new(1, -20, 1, -60)
scroll.Position = UDim2.new(0, 10, 0, 50)
scroll.BackgroundTransparency = 1
scroll.CanvasSize = UDim2.new(0, 0, 0, #shopItems * 80)
scroll.ScrollBarThickness = 8
scroll.Parent = shopFrame
local layout = Instance.new("UIListLayout")
layout.Padding = UDim.new(0, 10)
layout.Parent = scroll
for i, item in ipairs(shopItems) do
local itemFrame = Instance.new("Frame")
itemFrame.Size = UDim2.new(1, -10, 0, 70)
itemFrame.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
itemFrame.Parent = scroll
local nameLabel = Instance.new("TextLabel")
nameLabel.Text = item.Name
nameLabel.Size = UDim2.new(0.5, 0, 1, 0)
nameLabel.Position = UDim2.new(0, 10, 0, 0)
nameLabel.BackgroundTransparency = 1
nameLabel.Font = Enum.Font.Gotham
nameLabel.TextSize = 24
nameLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
nameLabel.TextXAlignment = Enum.TextXAlignment.Left
nameLabel.Parent = itemFrame
local priceLabel = Instance.new("TextLabel")
priceLabel.Text = "Buy: $" .. item.Price
priceLabel.Size = UDim2.new(0.3, 0, 1, 0)
priceLabel.Position = UDim2.new(0.5, 0, 0, 0)
priceLabel.BackgroundTransparency = 1
priceLabel.Font = Enum.Font.Gotham
priceLabel.TextSize = 20
priceLabel.TextColor3 = Color3.fromRGB(200, 200, 0)
priceLabel.Parent = itemFrame
local buyBtn = Instance.new("TextButton")
buyBtn.Text = "Buy"
buyBtn.Size = UDim2.new(0, 60, 0, 40)
buyBtn.Position = UDim2.new(1, -70, 0.5, -20)
buyBtn.BackgroundColor3 = Color3.fromRGB(80, 180, 80)
buyBtn.TextColor3 = Color3.new(1,1,1)
buyBtn.Font = Enum.Font.GothamBold
buyBtn.TextSize = 20
buyBtn.Parent = itemFrame
buyBtn.MouseButton1Click:Connect(function()
print("You clicked to buy:", item.Name)
-- Here you would fire a RemoteEvent to the server to handle the purchase!
end)
end
You can expand this by:
Let me know if you want a version that includes images or more advanced features!
If you want to connect the buy button to your server for real purchases, let me know!
If you want images/icons, I can show you how to add those too.
Let me know what you want next!
If you want to keep your old "Style Shop" for reference, just set its main Frame's Visible property to false in the Properties panel, so it doesn't show up on join.
Let me know if you need help with connecting the buy button to your server, or if you want to add images/icons!