Question
Make it |
|
|
Answers
Answer
This | local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local Credits = Instance.new("TextLabel")
-- Parent the GUI to the Player's PlayerGUI
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
-- Set up the Frame
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Frame.Size = UDim2.new(0.2, 100, 0.6, 50) -- Adjusted size to make it wider and a bit longer
Frame.Position = UDim2.new(0.4, -50, 0.2, -25) -- Center the GUI after adjusting size
Frame.BorderSizePixel = 0 -- Remove border lines
-- Set up the Title
Title.Parent = Frame
Title.Text = "Awaken v3"
Title.TextColor3 = Color3.new(1, 1, 1) -- White
Title.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Title.BackgroundTransparency = 1 -- Make the background transparent
Title.Size = UDim2.new(1, 0, 0.2, 0)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.Font = Enum.Font.SourceSans
Title.TextScaled = true
Title.BorderSizePixel = 0 -- Remove border lines
-- Set up the Credits
Credits.Parent = Frame
Credits.Text = "Credits: All credits go to Awaken"
Credits.TextColor3 = Color3.new(1, 1, 1) -- White
Credits.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Credits.BackgroundTransparency = 1 -- Make the background transparent
Credits.Size = UDim2.new(1, 0, 0.2, 0)
Credits.Position = UDim2.new(0, 0, 0.8, 0)
Credits.Font = Enum.Font.SourceSans
Credits.TextScaled = true
Credits.BorderSizePixel = 0 -- Remove border lines
|
local Frame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local Credits = Instance.new("TextLabel")
-- Parent the GUI to the Player's PlayerGUI
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
-- Set up the Frame
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Frame.Size = UDim2.new(0.2, 100, 0.6, 50) -- Adjusted size to make it wider and a bit longer
Frame.Position = UDim2.new(0.4, -50, 0.2, -25) -- Center the GUI after adjusting size
Frame.BorderSizePixel = 0 -- Remove border lines
-- Set up the Title
Title.Parent = Frame
Title.Text = "Awaken v3"
Title.TextColor3 = Color3.new(1, 1, 1) -- White
Title.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Title.BackgroundTransparency = 1 -- Make the background transparent
Title.Size = UDim2.new(1, 0, 0.2, 0)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.Font = Enum.Font.SourceSans
Title.TextScaled = true
Title.BorderSizePixel = 0 -- Remove border lines
-- Set up the Credits
Credits.Parent = Frame
Credits.Text = "Credits: All credits go to Awaken"
Credits.TextColor3 = Color3.new(1, 1, 1) -- White
Credits.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Credits.BackgroundTransparency = 1 -- Make the background transparent
Credits.Size = UDim2.new(1, 0, 0.2, 0)
Credits.Position = UDim2.new(0, 0, 0.8, 0)
Credits.Font = Enum.Font.SourceSans
Credits.TextScaled = true
Credits.BorderSizePixel = 0 -- Remove border lines
|
Answer
No like make the rectangle stretch | down more
Answer
Now bring it stretch it up a bit
Answer
Make it a bit smaller but a medium size like thos | |
| |
| |
Answered by
GPT-4o
Sure! It looks like you want to create a vertical bar or a divider of some sort. Here's a simple column:
```
|
|
|
|
|
|
|
|
|
|
```
Or if you're looking for something else, could you please provide more details?
```
|
|
|
|
|
|
|
|
|
|
```
Or if you're looking for something else, could you please provide more details?
Answered by
GPT-4o
You've got some Roblox Lua code that creates a simple GUI with a title and credits. Let's add some horizontal bars (`|`) to your code snippet to center it vertically. Here’s your adjusted code:
```lua
| local ScreenGui = Instance.new("ScreenGui")
| local Frame = Instance.new("Frame")
| local Title = Instance.new("TextLabel")
| local Credits = Instance.new("TextLabel")
|
| -- Parent the GUI to the Player's PlayerGUI
| ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
|
| -- Set up the Frame
| Frame.Parent = ScreenGui
| Frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
| Frame.Size = UDim2.new(0.2, 100, 0.6, 50) -- Adjusted size to make it wider and a bit longer
| Frame.Position = UDim2.new(0.4, -50, 0.2, -25) -- Center the GUI after adjusting size
| Frame.BorderSizePixel = 0 -- Remove border lines
|
| -- Set up the Title
| Title.Parent = Frame
| Title.Text = "Awaken v3"
| Title.TextColor3 = Color3.new(1, 1, 1) -- White
| Title.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
| Title.BackgroundTransparency = 1 -- Make the background transparent
| Title.Size = UDim2.new(1, 0, 0.2, 0)
| Title.Position = UDim2.new(0, 0, 0, 0)
| Title.Font = Enum.Font.SourceSans
| Title.TextScaled = true
| Title.BorderSizePixel = 0 -- Remove border lines
|
| -- Set up the Credits
| Credits.Parent = Frame
| Credits.Text = "Credits: All credits go to Awaken"
| Credits.TextColor3 = Color3.new(1, 1, 1) -- White
| Credits.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
| Credits.BackgroundTransparency = 1 -- Make the background transparent
| Credits.Size = UDim2.new(1, 0, 0.2, 0)
| Credits.Position = UDim2.new(0, 0, 0.8, 0)
| Credits.Font = Enum.Font.SourceSans
| Credits.TextScaled = true
| Credits.BorderSizePixel = 0 -- Remove border lines
|
```
This ensures the GUI components and properties remain clear and readable while aligning with the vertical bar (`|`). If you need more specific formatting or another type of integration, feel free to let me know!
```lua
| local ScreenGui = Instance.new("ScreenGui")
| local Frame = Instance.new("Frame")
| local Title = Instance.new("TextLabel")
| local Credits = Instance.new("TextLabel")
|
| -- Parent the GUI to the Player's PlayerGUI
| ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
|
| -- Set up the Frame
| Frame.Parent = ScreenGui
| Frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
| Frame.Size = UDim2.new(0.2, 100, 0.6, 50) -- Adjusted size to make it wider and a bit longer
| Frame.Position = UDim2.new(0.4, -50, 0.2, -25) -- Center the GUI after adjusting size
| Frame.BorderSizePixel = 0 -- Remove border lines
|
| -- Set up the Title
| Title.Parent = Frame
| Title.Text = "Awaken v3"
| Title.TextColor3 = Color3.new(1, 1, 1) -- White
| Title.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
| Title.BackgroundTransparency = 1 -- Make the background transparent
| Title.Size = UDim2.new(1, 0, 0.2, 0)
| Title.Position = UDim2.new(0, 0, 0, 0)
| Title.Font = Enum.Font.SourceSans
| Title.TextScaled = true
| Title.BorderSizePixel = 0 -- Remove border lines
|
| -- Set up the Credits
| Credits.Parent = Frame
| Credits.Text = "Credits: All credits go to Awaken"
| Credits.TextColor3 = Color3.new(1, 1, 1) -- White
| Credits.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
| Credits.BackgroundTransparency = 1 -- Make the background transparent
| Credits.Size = UDim2.new(1, 0, 0.2, 0)
| Credits.Position = UDim2.new(0, 0, 0.8, 0)
| Credits.Font = Enum.Font.SourceSans
| Credits.TextScaled = true
| Credits.BorderSizePixel = 0 -- Remove border lines
|
```
This ensures the GUI components and properties remain clear and readable while aligning with the vertical bar (`|`). If you need more specific formatting or another type of integration, feel free to let me know!
Answered by
GPT-4o
Ah, I understand now. You want the rectangle to stretch down vertically. In Roblox GUI scripting, this would involve adjusting the `Size` property of the `Frame` to make it taller.
Here's your modified code with the `Frame` stretched more vertically:
```lua
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local Credits = Instance.new("TextLabel")
-- Parent the GUI to the Player's PlayerGUI
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
-- Set up the Frame
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Frame.Size = UDim2.new(0.2, 100, 0.8, 100) -- Adjusted size to make it taller
Frame.Position = UDim2.new(0.4, -50, 0.1, -50) -- Center the GUI after adjusting size
Frame.BorderSizePixel = 0 -- Remove border lines
-- Set up the Title
Title.Parent = Frame
Title.Text = "Awaken v3"
Title.TextColor3 = Color3.new(1, 1, 1) -- White
Title.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Title.BackgroundTransparency = 1 -- Make the background transparent
Title.Size = UDim2.new(1, 0, 0.2, 0)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.Font = Enum.Font.SourceSans
Title.TextScaled = true
Title.BorderSizePixel = 0 -- Remove border lines
-- Set up the Credits
Credits.Parent = Frame
Credits.Text = "Credits: All credits go to Awaken"
Credits.TextColor3 = Color3.new(1, 1, 1) -- White
Credits.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Credits.BackgroundTransparency = 1 -- Make the background transparent
Credits.Size = UDim2.new(1, 0, 0.2, 0)
Credits.Position = UDim2.new(0, 0, 0.8, 0)
Credits.Font = Enum.Font.SourceSans
Credits.TextScaled = true
Credits.BorderSizePixel = 0 -- Remove border lines
```
Here are the key modifications:
1. `Frame.Size = UDim2.new(0.2, 100, 0.8, 100)` - This makes the frame significantly taller.
2. `Frame.Position = UDim2.new(0.4, -50, 0.1, -50)` - Adjusted the position to better center the frame after making it taller.
Adjust the `Size` and `Position` properties further according to your requirements for the rectangle's dimensions and position.
Here's your modified code with the `Frame` stretched more vertically:
```lua
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local Credits = Instance.new("TextLabel")
-- Parent the GUI to the Player's PlayerGUI
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
-- Set up the Frame
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Frame.Size = UDim2.new(0.2, 100, 0.8, 100) -- Adjusted size to make it taller
Frame.Position = UDim2.new(0.4, -50, 0.1, -50) -- Center the GUI after adjusting size
Frame.BorderSizePixel = 0 -- Remove border lines
-- Set up the Title
Title.Parent = Frame
Title.Text = "Awaken v3"
Title.TextColor3 = Color3.new(1, 1, 1) -- White
Title.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Title.BackgroundTransparency = 1 -- Make the background transparent
Title.Size = UDim2.new(1, 0, 0.2, 0)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.Font = Enum.Font.SourceSans
Title.TextScaled = true
Title.BorderSizePixel = 0 -- Remove border lines
-- Set up the Credits
Credits.Parent = Frame
Credits.Text = "Credits: All credits go to Awaken"
Credits.TextColor3 = Color3.new(1, 1, 1) -- White
Credits.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Credits.BackgroundTransparency = 1 -- Make the background transparent
Credits.Size = UDim2.new(1, 0, 0.2, 0)
Credits.Position = UDim2.new(0, 0, 0.8, 0)
Credits.Font = Enum.Font.SourceSans
Credits.TextScaled = true
Credits.BorderSizePixel = 0 -- Remove border lines
```
Here are the key modifications:
1. `Frame.Size = UDim2.new(0.2, 100, 0.8, 100)` - This makes the frame significantly taller.
2. `Frame.Position = UDim2.new(0.4, -50, 0.1, -50)` - Adjusted the position to better center the frame after making it taller.
Adjust the `Size` and `Position` properties further according to your requirements for the rectangle's dimensions and position.
Answered by
GPT-4o
Sure! To stretch the `Frame` upwards a bit more, you will adjust both the `Size` and `Position` properties. Here’s how you can modify your code to achieve that:
```lua
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local Credits = Instance.new("TextLabel")
-- Parent the GUI to the Player's PlayerGUI
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
-- Set up the Frame
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Frame.Size = UDim2.new(0.2, 100, 0.9, 150) -- Adjusted size to make it taller
Frame.Position = UDim2.new(0.4, -50, 0.05, -75) -- Adjusted position to move it up a bit
Frame.BorderSizePixel = 0 -- Remove border lines
-- Set up the Title
Title.Parent = Frame
Title.Text = "Awaken v3"
Title.TextColor3 = Color3.new(1, 1, 1) -- White
Title.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Title.BackgroundTransparency = 1 -- Make the background transparent
Title.Size = UDim2.new(1, 0, 0.2, 0)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.Font = Enum.Font.SourceSans
Title.TextScaled = true
Title.BorderSizePixel = 0 -- Remove border lines
-- Set up the Credits
Credits.Parent = Frame
Credits.Text = "Credits: All credits go to Awaken"
Credits.TextColor3 = Color3.new(1, 1, 1) -- White
Credits.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Credits.BackgroundTransparency = 1 -- Make the background transparent
Credits.Size = UDim2.new(1, 0, 0.2, 0)
Credits.Position = UDim2.new(0, 0, 0.8, 0)
Credits.Font = Enum.Font.SourceSans
Credits.TextScaled = true
Credits.BorderSizePixel = 0 -- Remove border lines
```
Here's a brief explanation of the changes:
1. **Stretch up the Frame:** `Frame.Size = UDim2.new(0.2, 100, 0.9, 150)` - Increased the Y-scale and Y-offset to stretch the frame up and down.
2. **Position the Frame Higher:** `Frame.Position = UDim2.new(0.4, -50, 0.05, -75)` - Adjusted the position's Y-scale and Y-offset to move the frame upwards on the screen.
Feel free to fine-tune these values to get the exact look and positioning you desire for your GUI.
```lua
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local Credits = Instance.new("TextLabel")
-- Parent the GUI to the Player's PlayerGUI
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
-- Set up the Frame
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Frame.Size = UDim2.new(0.2, 100, 0.9, 150) -- Adjusted size to make it taller
Frame.Position = UDim2.new(0.4, -50, 0.05, -75) -- Adjusted position to move it up a bit
Frame.BorderSizePixel = 0 -- Remove border lines
-- Set up the Title
Title.Parent = Frame
Title.Text = "Awaken v3"
Title.TextColor3 = Color3.new(1, 1, 1) -- White
Title.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Title.BackgroundTransparency = 1 -- Make the background transparent
Title.Size = UDim2.new(1, 0, 0.2, 0)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.Font = Enum.Font.SourceSans
Title.TextScaled = true
Title.BorderSizePixel = 0 -- Remove border lines
-- Set up the Credits
Credits.Parent = Frame
Credits.Text = "Credits: All credits go to Awaken"
Credits.TextColor3 = Color3.new(1, 1, 1) -- White
Credits.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Credits.BackgroundTransparency = 1 -- Make the background transparent
Credits.Size = UDim2.new(1, 0, 0.2, 0)
Credits.Position = UDim2.new(0, 0, 0.8, 0)
Credits.Font = Enum.Font.SourceSans
Credits.TextScaled = true
Credits.BorderSizePixel = 0 -- Remove border lines
```
Here's a brief explanation of the changes:
1. **Stretch up the Frame:** `Frame.Size = UDim2.new(0.2, 100, 0.9, 150)` - Increased the Y-scale and Y-offset to stretch the frame up and down.
2. **Position the Frame Higher:** `Frame.Position = UDim2.new(0.4, -50, 0.05, -75)` - Adjusted the position's Y-scale and Y-offset to move the frame upwards on the screen.
Feel free to fine-tune these values to get the exact look and positioning you desire for your GUI.
Answered by
GPT-4o
Got it! You want the frame to be a medium size, smaller than what we previously set but still visible on the screen. Here's how we can adjust the `Size` and `Position` properties to make it like the vertical bars:
```lua
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local Credits = Instance.new("TextLabel")
-- Parent the GUI to the Player's PlayerGUI
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
-- Set up the Frame
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Frame.Size = UDim2.new(0.1, 50, 0.5, 100) -- Adjusted to a medium size
Frame.Position = UDim2.new(0.45, -25, 0.25, -50) -- Center the GUI after adjusting size
Frame.BorderSizePixel = 0 -- Remove border lines
-- Set up the Title
Title.Parent = Frame
Title.Text = "Awaken v3"
Title.TextColor3 = Color3.new(1, 1, 1) -- White
Title.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Title.BackgroundTransparency = 1 -- Make the background transparent
Title.Size = UDim2.new(1, 0, 0.2, 0)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.Font = Enum.Font.SourceSans
Title.TextScaled = true
Title.BorderSizePixel = 0 -- Remove border lines
-- Set up the Credits
Credits.Parent = Frame
Credits.Text = "Credits: All credits go to Awaken"
Credits.TextColor3 = Color3.new(1, 1, 1) -- White
Credits.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Credits.BackgroundTransparency = 1 -- Make the background transparent
Credits.Size = UDim2.new(1, 0, 0.2, 0)
Credits.Position = UDim2.new(0, 0, 0.8, 0)
Credits.Font = Enum.Font.SourceSans
Credits.TextScaled = true
Credits.BorderSizePixel = 0 -- Remove border lines
```
Changes made:
1. **Size Adjustments:**
- `Frame.Size = UDim2.new(0.1, 50, 0.5, 100)` - Adjusted to make the frame medium-sized.
2. **Position Adjustments:**
- `Frame.Position = UDim2.new(0.45, -25, 0.25, -50)` - Adjusted the position to center the medium-sized frame on the screen.
This will give you a vertically centered, medium-sized frame that fits within the dimensions you described. You can further tweak the `Size` and `Position` properties as needed to get the exact appearance you want.
```lua
local ScreenGui = Instance.new("ScreenGui")
local Frame = Instance.new("Frame")
local Title = Instance.new("TextLabel")
local Credits = Instance.new("TextLabel")
-- Parent the GUI to the Player's PlayerGUI
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
-- Set up the Frame
Frame.Parent = ScreenGui
Frame.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Frame.Size = UDim2.new(0.1, 50, 0.5, 100) -- Adjusted to a medium size
Frame.Position = UDim2.new(0.45, -25, 0.25, -50) -- Center the GUI after adjusting size
Frame.BorderSizePixel = 0 -- Remove border lines
-- Set up the Title
Title.Parent = Frame
Title.Text = "Awaken v3"
Title.TextColor3 = Color3.new(1, 1, 1) -- White
Title.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Title.BackgroundTransparency = 1 -- Make the background transparent
Title.Size = UDim2.new(1, 0, 0.2, 0)
Title.Position = UDim2.new(0, 0, 0, 0)
Title.Font = Enum.Font.SourceSans
Title.TextScaled = true
Title.BorderSizePixel = 0 -- Remove border lines
-- Set up the Credits
Credits.Parent = Frame
Credits.Text = "Credits: All credits go to Awaken"
Credits.TextColor3 = Color3.new(1, 1, 1) -- White
Credits.BackgroundColor3 = Color3.new(0, 0, 0) -- Black
Credits.BackgroundTransparency = 1 -- Make the background transparent
Credits.Size = UDim2.new(1, 0, 0.2, 0)
Credits.Position = UDim2.new(0, 0, 0.8, 0)
Credits.Font = Enum.Font.SourceSans
Credits.TextScaled = true
Credits.BorderSizePixel = 0 -- Remove border lines
```
Changes made:
1. **Size Adjustments:**
- `Frame.Size = UDim2.new(0.1, 50, 0.5, 100)` - Adjusted to make the frame medium-sized.
2. **Position Adjustments:**
- `Frame.Position = UDim2.new(0.45, -25, 0.25, -50)` - Adjusted the position to center the medium-sized frame on the screen.
This will give you a vertically centered, medium-sized frame that fits within the dimensions you described. You can further tweak the `Size` and `Position` properties as needed to get the exact appearance you want.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.