So I'm making this chaotic game where it imports random models. I'm stuck here. I'm using Kat-Digital's RBXM Reader module.more info about the module here I've tried using assetdelivery.roblox.com but that doesn't work. What other place is there for getting RBXM from an AssetID?

--Get required Roblox services
local HttpService = game:GetService("HttpService")
local RBXM        = require(script.RBXMReader)

--Perform HTTP request
local httpOkay, data = pcall(HttpService.GetAsync, HttpService, "https://assetdelivery.roblox.com/v1/assetId/?id=183435411")

--Read instance or print error
if (httpOkay) then
	local instance = RBXM.readRBXM(data)
	instance.Parent = workspace
	print("Read successful")
else
	print("HTTP Failed")
end

3 comments

0

I don't think that Roblox allows for scripts to use it's own API. Maybe try uploading models to a website and then downloading them using HTTPService? I don't know, I'm not really good with web requests or setting up an API that could be used by HTTPService.

0

@TheMinecraftSmarts Roblox games can 100% use Roblox API's, thats the main reason they exist.

0

So, anybody got the answer?