Update script.lua
This commit is contained in:
18
script.lua
18
script.lua
@@ -1,8 +1,10 @@
|
|||||||
local screen = GetPartFromPort(1, "Screen") --Gets the screen
|
function tick()
|
||||||
screen:ClearElements() --clears the screen of any previous elements
|
local screen = GetPartFromPort(1, "Screen")
|
||||||
screen:CreateElement("TextLabel", { -- creates an element with the given name and properties
|
screen:ClearElements()
|
||||||
Text = "Hi!", --Sets the text to Hi!
|
screen:CreateElement("TextLabel", {
|
||||||
TextScaled = true, -- Automatically scales the text to fit the screen
|
Text = "Hello World",
|
||||||
Size = UDim2.fromScale(1, 1), --Makes the size cover the whole screen
|
TextScaled = true,
|
||||||
Position = UDim2.fromScale(0, 0) --sets the position
|
Size = UDim2.fromScale(1, 1),
|
||||||
})
|
Position = UDim2.fromScale(0, 0)
|
||||||
|
})
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user