How can I specify an opening parenthesis in the text without a closing one?

Hi! I ran into the problem that I need to specify an opening parenthesis when searching in the text, but the syntax gives an error that I need to specify a closing parenthesis, how do I specify that the parenthesis should be plain text? Here is the script:

string.find(text,"(")

https://create.roblox.com/docs/luau/strings#magic-characters

“You can escape and search for magic characters using the % symbol. For example, to search for roblox.com, escape the . (period) symbol by preceding it with a % as in %.

string.find(text, "%(")

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.