Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Note : Using this in a FE Game may not work, This should work only in script builders only if they use a require or a FE Converter
- -- Made by Animescapetower--
- InsertService = game:GetService("InsertService")
- LoadAsset = function(AssetType,AssetID) -- AssetType[TYPE OF ASSET], AssetID[ID OF ASSET]
- local Asset = InsertService:LoadAsset(AssetID) -- Asset
- if AssetID == 0 or AssetID == nil then-- If no assetid or the assetid is 0 then the asset can not work, it may result in a error.
- else
- if AssetType == "Sound" or AssetType == "Model" or AssetType == "Decal" or AssetType == "Mesh" or AssetType == "All" then
- Asset.Parent = workspace
- end
- end
- return Asset
- end
- local ID = 0
- LoadAsset("All",ID) -- runs function
- _G.LoadAsset = LoadAsset -- Easily can get load asset function using the output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement