Studio Lite Tips and FAQ

Hi, I have this constant error i don’t know how to fix in the script editor, Whenever i type a block of code similar to:

for i, v in workspace:GetChildren() do
print(v:GetFullName())
end

The script errors and says invalid argument #1 to ‘unpack’ (table expected, got string)

I believe ‘unpack’ is string.unpack, and i haven’t used the string library at all, Thank you

You can fix this by adding “pairs” as follows:

for i, v in pairs(workspace:GetChildren()) do
print(v:GetFullName())
end

I think it’s due to the slightly older version of Lua we are using in Studio Lite.

1 Like

Is there a way we can insert BAE (Basic Admin Essentials 2.0), i tried it inserting but it said the system can’t import more than like 1000 line script or whatever something…

Is dark mode coming to studio lite anytime soon? I often set the brightness down really low so i dont get distracted by how bright the script editor is while im typing. It’d be really helpful, Thanks.

Hello, is there any way to enable the API service for Data Stores?

Hi TheRealishGuy.
Not really. Each experience has its own datastore. You can use Studio Lite’s built-in DataStoreScript to save player data in both Play/test mode and Published (two separate datastores). But other datastore function are blocked in Play/test mode to keep your saved games safe from other players. Studio Lite doesn’t have access to your published game’s datastore. You could theoretically access your published datastore from Studio Lite Play/test mode using an API key and calling the datastore Cloud APIs through a proxy. But that would be crazy.

Will auto-save be added to Studio Lite in the near future? Many times I find that if I lose internet connection, or Roblox just randomly crashes, then my work is gone because I forget to save after making major changes to a certain feature of a game.