Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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

✓ Accepted answer

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 comments

2

Ohhh I see, hah ok. Thank you.

1

No problem

This discussion is preserved as it was. New answers, comments, and votes are closed.