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

Scripting a textbox and textLabel?

Asked by 6 years ago

How do you make when you put in a word that a other textLabel is saying to you put it in a textbox and if it is correct you get ex and then level up how do you do this?

0
I do not understand your question.. greatneil80 2647 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

Check out the API for TextBox. Its FocusLost event will tell you when to do the comparison (presumably you have a variable somewhere with the value the player is supposed to type in). How much XP they get and how that affects their level is up to you.

(If you need more help than this, you'll need to learn some basic scripting -- there are tutorials to help, ex http://wiki.roblox.com/index.php?title=AllTutorials and maybe https://scriptinghelpers.org/guides/lua-quick-start-guide. If you get stuck on any of them, feel free to ask questions about it.)

Ad

Answer this question