Studio command bar limit/Running mass code from the command bar?

Hi all,

I’m developing code that allows me to create a map for an orthogonal tile based map outside of Roblox and import it in.

This data is stored in 16x16 chunks and the map is going to be rather large.

As far as I’m aware the only way to run code in studio is to paste it into the command bar, which is working for small maps, however seems to break if my code is any more than 780 lines long, which it is getting to due to the masses of chunk data that I’m copy pasting in.

The code below works and successfully creates the map from the data.

map1

It seems to be a character limit issue not a line limit issue as sometimes it stops at different spots, usually 775 - 785 lines and it just cuts out.

I was wondering how I can get around this? Is there a better way to run code from within studio or some method I can use?

Any ideas appreciated, thanks!

Save your code in a Lua file then go to Model > Advanced > Run Script and load it up.

image

5 Likes

Oh mate that is amazing and would’ve saved me so much time in the past.

Googling things like “Run code from Roblox Studio” and all that comes up with nothing!

Thank you so much!