I want to make a game where you can mess around with strings, and I want an efficient way to get every function for strings. Something like :GetChildren() but for strings. Is this even possible? If so, thank you!
I assume you mean you want to get every method for the string library:
local methods = {} -- table to hold the names of the properties
for index, _ in pairs(string) do -- loops through the string global
table.insert(methods, index) -- insert the current index inside the 'methods' table (the current property name)
end
The underscore would be the function of the method itself
1 Like
Ok. I figured it would probably be a for loop, but I didn’t know you could just type “string.” Thank you!