Converting my pastebin text from string to table

I am trying to set up a whitelist system I can edit via an pastebin post, however it returns as a string. How would I make it return as a table?

the insides of the pastebin text

{98033980,103548428}

You can utilize HttpService:JSONDecode

Rather than having the { and } in the pastebin you could just have the ids seperated by commas. Then in your game you could split that string and loop through each entry, adding it into a table. Then use that table

Wiki pages for reference:
https://developer.roblox.com/en-us/api-reference/lua-docs/string

2 Likes