Load (Method)

From Legacy Roblox Wiki
Jump to navigationJump to search
Protected:This item is protected. Attempting to use it in a Script or LocalScript will cause an error.
Load( Content url )
Returns nil
Description: Loads a Roblox Place File from a URL.
Member of: DataModel



Example
local baseurl="http://www.roblox.com/asset/?id=%d"
game:Load(baseurl:format(1818)) -- Loads Crossroads, an original, *uncopylocked* game by ROBLOX

-- NOTE:  If trying to access a copylocked placed that is not owned by the currently logged in user, or if used in any code with a security context less than 4, this will not work, and will error.