Skip to content

llSubStringIndex

function ll.SubStringIndex(Text: string, Sequence: string): number

Returns an integer that is the index in Text where string pattern Sequence first appears. Returns -1 if not found.

Parameters
Text (string)
Sequence (string)

Add example usage here showing SLua/Luau syntax with ll.SubStringIndex().

Add additional notes, caveats, or tips specific to using this function in SLua/Luau.