8 lines
465 B
Lua
8 lines
465 B
Lua
local screen = GetPartFromPort(1, "Screen") --Gets the screen
|
|
screen:ClearElements() --clears the screen of any previous elements
|
|
screen:CreateElement("TextLabel", { -- creates an element with the given name and properties
|
|
Text = "Hi!", --Sets the text to Hi!
|
|
TextScaled = true, -- Automatically scales the text to fit the screen
|
|
Size = UDim2.fromScale(1, 1), --Makes the size cover the whole screen
|
|
Position = UDim2.fromScale(0, 0) --sets the position
|
|
}) |