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

Create a search bar, how to find a word?

Asked by 4 years ago
Edited 4 years ago

Hey devs! I want to make a search bar, I firstly wanted to use a "string" but I dont know how to search a word with them. Somebody can explain me how to search a word on a table or a string?

local kqo = "Hello world"
print(string.???('world', kqo))

If it's really not a good idea tell me the. Thank you!:)

(It's not a request script, just explications)

2 answers

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Namaste it is i, dual

print(string.match(kqo, "world")) print's "world"

I recommend reading more on ROBLOX's string API here:

https://developer.roblox.com/api-reference/lua-docs/string

That is all

0
I don't speak english, I can writte but I have a difficulty to reed. NiniBlackJackQc 1562 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

Okay first I want more information please

Answer this question