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

How/Can I include a variable in a GUI display?

Asked by
Timei 6
3 years ago

So I have a script set to pop up a gui when someone crosses a finish line (a transparent no collide wall) and I want it to say 1st, 2nd, 3rd and so on. So I figured I would just use a simple counter and variable to count how many people have made contact with the block but I can't seem to find a way where I could insert that variable into a text box within the UI.

P.S sorry if this is a super basic question, I'm new to lua and just trying to learn how this stuff works.

1 answer

Log in to vote
1
Answered by 3 years ago

If you're using the GUI to display text, you'll want to use a TextLabel instead of a TextBox. A TextBox is user editable, while a TextLabel is not. After that you should just be able to set the Text property of the TextLabel in the script.

2
Ohhh I see, hah ok. Thank you. Timei 6 — 3y
1
No problem acer1102 97 — 3y
Ad

Answer this question