Creating GUIs

GUIs in Roblox Studio allow you to create interactive and customizable interfaces for your players. Here's how you can create a basic GUI.

Basic GUI Example

local screenGui = Instance.new("ScreenGui")
screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local button = Instance.new("TextButton")
button.Size = UDim2.new(0, 200, 0, 50)
button.Position = UDim2.new(0.5, -100, 0.5, -25)
button.Text = "Click Me"
button.Parent = screenGui

Common GUI Elements