Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Is there a way to load roblox assets with rbxasset?

Is there a way to load .rbxm into roblox studio using built in functions within plugins?

I have been trying to get it to work with a plugin I am making.

Here is the code I have tried to use:

game:GetObjects('rbxasset://avatar/characterR15.rbxm')

Api Documentation:

GetObjects (Roblox Wiki)

It does not cause errors, but does not seem to do anything.

If anyone knows a way that I can load this file into roblox studio it would be a great help.

Thanks.

1 answer

Edit: it might not be impossible, but I don't know of any way, and GetObjects() will not work because:

The GetObjects() method has a security level of LocalUserSecurity, a security context which permits use within thread identities 4, 5, and 7.

This means that only RobloxCoreScripts, the Command Bar, and Roblox's Lua backend have clearance for the function.

http://wiki.roblox.com/index.php?title=Normal_identities#Security_contexts

2 comments

0

I have used GetObjects for a plugin in the past and it works with Asset Ids.

0

Could have been changed since then. Other than that, I don't know; It's pretty rare that the wiki is wrong.

This discussion is preserved as it was. New answers, comments, and votes are closed.