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

How would I make it so a script changed the text of a GUI?[Solved]

Asked by 10 years ago
script.Parent.Text = Test1
wait(3)
script.Parent.Text = Test2
wait(4)

The script I am currently using Nothing's happening when I run the server. The scripts parent is a textbutton. What am I doing wrong?

0
Quotation marks around a string value. You would put script.Parent.Text = "Test1", someone with more experience might elaborate why down there v but we'll see. infalliblelemon 145 — 10y

1 answer

Log in to vote
1
Answered by 10 years ago

Er, you need quotation marks. This is the correct script:

script.Parent.Text = "Test1"
wait(3)
script.Parent.Text = "Test2"

The wait at the end is also not needed. I'm Aurum, and you're welcome.

0
Thanks! nightmare13542 45 — 10y
Ad

Answer this question