Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How do I format text size and position?

Asked by 9 years ago
local Q1 = Instance.new("ScreenGui")
Q1.Parent = game.StarterGui
local text = Instance.new("TextBox")
text.Parent = Q1
text.BackgroundTransparency = 1
text.MultiLine = true
text.Position = {0,200,0,200}
text.Size = 0,200,0,200

The above text.Position and text.Size do not work. In what way do i put them?

0
You need Udim2's. GoldenPhysics 474 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago

Use UDim2.

Heres the structure

UDim2.new( ScaleX, OffsetX, ScaleY, OffsetY)

Ad

Answer this question