Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- local gui = Instance.new("ScreenGui")
- gui.Name = "BigGUI"
- gui.Parent = player.PlayerGui
- local bigFrame = Instance.new("Frame")
- bigFrame.Size = UDim2.new(1, 0, 1, 0)
- bigFrame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- bigFrame.Visible = false
- bigFrame.Parent = gui
- local textBox = Instance.new("TextBox")
- textBox.Size = UDim2.new(0.9, 0, 0.9, 0)
- textBox.Position = UDim2.new(0.05, 0, 0.05, 0)
- textBox.BackgroundColor3 = Color3.new(1, 1, 1)
- textBox.TextWrapped = true
- textBox.MultiLine = true
- textBox.Parent = bigFrame
- local creditLabel = Instance.new("TextLabel")
- creditLabel.Size = UDim2.new(1, 0, 0, 30)
- creditLabel.Position = UDim2.new(0, 0, 1, -30)
- creditLabel.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- creditLabel.TextColor3 = Color3.new(1, 1, 1)
- creditLabel.TextSize = 20
- creditLabel.Font = Enum.Font.SourceSans
- creditLabel.Text = "Owner: MawinCK | Scripter: ChatGPT"
- creditLabel.Parent = bigFrame
- local smallGUI = Instance.new("Frame")
- smallGUI.Size = UDim2.new(0.1, 0, 0.1, 0)
- smallGUI.Position = UDim2.new(0.9, 0, 0.1, 0)
- smallGUI.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
- smallGUI.Parent = gui
- local openButton = Instance.new("TextButton")
- openButton.Size = UDim2.new(1, 0, 1, 0)
- openButton.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
- openButton.TextColor3 = Color3.new(1, 1, 1)
- openButton.TextSize = 20
- openButton.Font = Enum.Font.SourceSans
- openButton.Text = "Open"
- openButton.Parent = smallGUI
- local isOpen = false
- local function toggleGUI()
- if isOpen then
- bigFrame.Visible = false
- smallGUI.Size = UDim2.new(0.1, 0, 0.1, 0)
- smallGUI.Position = UDim2.new(0.9, 0, 0.1, 0)
- openButton.Text = "Open"
- else
- bigFrame.Visible = true
- smallGUI.Size = UDim2.new(0.05, 0, 0.05, 0)
- smallGUI.Position = UDim2.new(0.95, 0, 0, 0)
- openButton.Text = "Off"
- end
- isOpen = not isOpen
- end
- openButton.MouseButton1Click:Connect(toggleGUI)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement