Skip to content

Instantly share code, notes, and snippets.

View bubu07codes's full-sized avatar
:bowtie:
I may be slow to respond.

Bubu07 bubu07codes

:bowtie:
I may be slow to respond.
View GitHub Profile
-- Put this in a Part (:
local gui = Instance.new("SurfaceGui") -- Creates a SurfaceGui
gui.Parent = script.Parent -- Don’t forget to set the parent!
gui.SizingMode = "PixelsPerStud" -- Same as Enum.SurfaceGuiSizingMode.PixelsPerStud
local text = Instance.new("TextLabel") -- Creates a TextLabel
text.Parent = gui -- Parent to the gui
text.Size = UDim2.fromScale(1,1) -- Gets scaled to Max (x,y)
text.BackgroundTransparency = 1 -- Sets background transparency to 1 (fully transparent)