Skip to content

Instantly share code, notes, and snippets.

@NoobDancer100
Last active November 28, 2023 23:10
Show Gist options
  • Save NoobDancer100/e32052fe4c8b699727292cd440e60618 to your computer and use it in GitHub Desktop.
Save NoobDancer100/e32052fe4c8b699727292cd440e60618 to your computer and use it in GitHub Desktop.
Roblox Waste of Space Script Files
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
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment