RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"write me a script that opens a gui when I execute it"
-- LocalScript in StarterGui local ScreenGui = Instance.new("ScreenGui") ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui local Frame = Instance.new("Frame") Frame.Size = UDim2.new(0.5, 0, 0.5, 0) Frame.Position = UDim2.new(0.25, 0, 0.25, 0) Frame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) Frame.Parent = ScreenGui local TextLabel = Instance.new("TextLabel") TextLabel.Size = UDim2.new(1, 0, 1, 0) TextLabel.Text = "Hello, welcome to the GUI!" TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255) TextLabel.BackgroundTransparency = 1 TextLabel.Font = Enum.Font.SourceSans TextLabel.TextScaled = true TextLabel.Parent = Frame