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

Why does my decal not show up, and no error messages are present?

Asked by
Jexpler 63
5 years ago

Here is my script:

local tool = script.Parent.Parent.Parent

tool.AncestryChanged:Connect(function(c, p)
    if p:FindFirstChild('Humanoid') then
        if tool.PN.Value == "" then
            tool.PN.Value = p.Name
        end
    end
end)

tool.Equipped:Connect(function()
    script.Parent.Decal.Texture = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..tool.PN.Value
end)
0
Was the url copied to the decal? MageMasterHD 261 — 5y
0
Yes. With the player's name at the end as it should. Jexpler 63 — 5y
0
Is this a local or server script? MageMasterHD 261 — 5y
0
Server Jexpler 63 — 5y
0
Use these urls for getting avatar photos, https://devforum.roblox.com/t/new-image-endpoints-that-can-be-used-in-game/28182 CPF2 406 — 5y

Answer this question