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

Get Picture from Model?

Asked by
RM0d 305 Moderation Voter
10 years ago

I know you can do it with places... --Stickmasterluke

sp=script.Parent

function waitForChild(instance, name)
    while not instance:FindFirstChild(name) do
        instance.ChildAdded:wait()
    end
end

waitForChild(sp,"Configuration")
waitForChild(sp,"Decal")
waitForChild(sp.Configuration,"Place Id")

placeid=sp.Configuration["Place Id"]
plID = 3141433 -- id here i made it up -- Place id
function check()
    if placeid and placeid.Parent~=nil and sp:FindFirstChild("Decal") then
        sp.Decal.Texture="http://www.roblox.com/Thumbs/Asset.ashx?format=png&width=420&height=230&assetId="..plID
    end
end

check()
placeid.Changed:connect(check)

is there a way to do it with a model

0
Did you notice that the sp.Decal.Texture was set to an X? fireboltofdeath 635 — 10y

Answer this question