New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

how would i change the text of a textbox in a gui?

Asked by
luaa233 37
3 months ago
local gui = script.Parent.Parent
local tb = script.Parent
tb:Text("hi")

2 answers

Log in to vote
1
Answered by
KDarren12 690 Donator Moderation Voter
3 months ago
local gui = script.Parent.Parent
local tb = script.Parent
tb.Text = "hi"

Hope it works

0
it worked. i didnt expect you to be able to change something like that luaa233 37 — 3mo
Ad
Log in to vote
0
Answered by
Velsity 207 Moderation Voter
3 months ago
Edited 3 months ago
local gui = script.Parent.Parent
local tb = script.Parent
tb.Text = "hi"

You should use an equal sign to set the value. https://developer.roblox.com/en-us/api-reference/class/TextBox

0
you didnt include any of the variables he used; and you changed the text. KDarren12 690 — 3mo
0
fixed Velsity 207 — 3mo

Answer this question