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

[STRINGS] How do you print words inbetween text?

For example, you have this:

x = "Player name = Hi. Player Value = 3. Player ID = 25167131."

How would you print 3?

2 comments

0

Please enclose your code in the blocks created by the Lua button so we can better understand your request.

0

You could use the find function to retrieve the position, or use the match function to return it. (I recommend using the find function if you understand string manipulation.)

1 answer

I just kind of do this

x = "Player name = "..plr.Name..". Player Value = "..Value..". Player ID = "..plr.UserId.."."

The double dots lets you fit a variable into a string, and you can continue the string later on

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