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

[READ] Help With TextButon ?

Asked by 8 years ago

local button = Instance.new("TextButton") script.Parent.TextWrapped = true script.Parent.TextScaled = true script.Parent.FontSize = 50 script.Parent.BackRoundTransparency = 1 script.Parent.Position(0 , 64 , 0 , 64) script.Parent.Style = ("Custom") script.Parent.Text = ("Welcome to Soul - Eater Online")

None of these things are working , and I don't know why . But I Believe I didn't name the parent of Text Button correct could someone help me or give me advice , Please and thank you .

0
you never gave your textbutton a parent ProfessorSev 220 — 8y
0
How do I do that? KelsiCabana 70 — 8y

1 answer

Log in to vote
0
Answered by
Kryddan 261 Moderation Voter
8 years ago

You never gave it a parent.

You can do it like this.

local button = Instance.new("TextButton")
button.Parent = Whatever -- Parent

or you can simply put in where you made a new instance like so:

local button = Instance.new("TextButton", Whatever) --Parent
Ad

Answer this question