How would I insert a RBXM file into Roblox Studio with a script?

Like for example, let’s say this model

The link to get the RBXM of this model would be https://assetdelivery.roblox.com/v1/asset/?id=75354400953490

I want to insert an RBXM like this into Roblox Studio with a script while the game is still running (I know very specific)

Any ways to do this?

2 Likes

Does it need to be a file? Just use insert service

2 Likes

Then I cannot insert other models users have created

The way I see it you have two options:

Have the user upload it as a model

Have a website users can upload too that then json encodes the file somehow and posts it (probably use long polling for this, unsure how else you would implement external requests) and then have the game server receive that, decode it, insert it. This probably breaks tos anyways as you are allowing models to be inserted unchecked by moderation.

It’s really complicated, you’ll need a Deserializer, Cloud/Web Server (which costs money, unless you use your own PC to host your own server)

Read this Post, someone did something similiar and you can see everything you will need to have and make.

One more thing to note is that you cannot create MeshParts and SurfaceAppearances with Instance.new. You’ll have to import them as assets.

If you get them into your inventory, im sure you can

came back to devforum after being inactive for months from that one

currently my rbxm serializing setup is powered on a personal webserver made out of 6 clustered desktops that i was given for free and i repaired them myself (the peak 16gb ram and 128gb ssd is real)

i dont mind hosting the api publicly and giving people access to use it like a public api
(otherwise im just gonna make a private key only api if you really need it)

1 Like

also the project isnt dead i just went silent so i could work on a custom secure luau vm sandboxer since ive had to deal with people creating so, so, so many bad models its driven me insane

here are some ISCMCService (the backend server) leaks for now

Screenshot 2024-11-22 184800

average benchmark speed is very fast, could compete with insertservice speed
(i vill not be showing the init section because it leaks alot of internal stuff hhh)

image
lovely splashscreen

anyways if you want to use any of my apis or even contribute to the insert sandbox project, dm me thanks

2 Likes

roblox has added a rate limit to the “get/buy asset” api ever since, so if you are planning to have more than 2-3 people playing the game at once you would need to use an alternate method

1 Like

Also I learned that you can use this to decode the RBXM in pure luau
GitHub - metatablecat/lxm

I do know how to make it into an instance but this will be too hard because I have to figure out how to make instances with properties that are not able to be edited by a script like Scripts (.Source property) or Meshes (I already know how to do this but sometimes the texture doesn’t work)