Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Am I using Preload right?

Asked by 8 years ago

Can someone tell me if I am using Preload right for decals, if not what am I doing wrong?

Code:

local preload = {68437731}

for _,v in pairs(preload) do
    game:GetService("ContentProvider"):Preload("rbxassetid://"..v)
end

1 answer

Log in to vote
0
Answered by 8 years ago

If your using an asset ID, I believe it should be "http://www.roblox.com/asset/?id=" instead of "rbxassetid://". But if that works, I would assume its right. You might also check the ID is correct.

0
Thanks. ISellCows 2 — 8y
0
Np. Hope this helps. AwsomeSpongebob 350 — 8y
Ad

Answer this question