Update script.lua

This commit is contained in:
2026-03-06 11:10:05 +01:00
parent 42bb20c2c4
commit 57cc9e4df8

View File

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