From 57cc9e4df87a89fd46dad11af5ed5dd24ffe0f8c Mon Sep 17 00:00:00 2001 From: Ben de Roo Date: Fri, 6 Mar 2026 11:10:05 +0100 Subject: [PATCH] Update script.lua --- script.lua | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/script.lua b/script.lua index 9354f69..cef3a63 100644 --- a/script.lua +++ b/script.lua @@ -1,10 +1,8 @@ -function Init() - local screen = GetPartFromPort(1, "Screen") - screen:ClearElements() - screen:CreateElement("TextLabel", { - Text = "Hello World", - TextScaled = true, - Size = UDim2.fromScale(1, 1), - Position = UDim2.fromScale(0, 0) - }) -end \ No newline at end of file + 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 +}) \ No newline at end of file