The id is correct, the decal is a screenshot of wii sports.
Here is the script: script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr, text) local hasPass = game:GetService("MarketplaceService"):UserOwnsGamePassAsync(plr.userId, 11189002) if hasPass == true then if workspace.Projector.DecalPart:FindFirstChildOfClass("Decal") then workspace.Projector.DecalPart:FindFirstChildOfClass("Decal"):Destroy() end Instance.new("Decal",workspace.Projector.DecalPart).Texture = "http://www.roblox.com/asset/?id="..text workspace.Projector.DecalPart:FindFirstChildOfClass("Decal").Transparency = 0.2 script.Parent.Parent.Parent.Parent.Enabled = false end
I’m using this with a text box, that’s what the “,.text” is
try:script.Parent.RemoteEvent.OnServerEvent:Connect(function(plr, text) local hasPass = game:GetService(“MarketplaceService”):UserOwnsGamePassAsync(plr.userId, 11189002) if hasPass == true then if workspace.Projector.DecalPart:FindFirstChildOfClass(“Decal”) then workspace.Projector.DecalPart:FindFirstChildOfClass(“Decal”):Destroy() end Instance.new(“Decal”,workspace.Projector.DecalPart).Texture = 523523523 --id here workspace.Projector.DecalPart:FindFirstChildOfClass(“Decal”).Transparency = 0.2 script.Parent.Parent.Parent.Parent.Enabled = false end end)
–Just try use numbers of id to Texture
Same problem though, it doesn’t load the decal, but I have noticed when I paste it in studio and not while playtesting, it changes the id and loads correctly.
Have you checked if when you paste it into studio, does it change the last few digits of the ID? Sometimes the actual image ID is different from the URL ID.
A script wouldn’t automatically change the URL ID into the image ID, so maybe try inputting the changed ID that you get from the actual image in studio into the script if you haven’t already.
I’ve seen it before done on other dev forum posts but it isn’t easy to do, I’d suggest just a image preview GUI or something so they can manually change the number until it displays correctly. If you wanna go for the other complex way you may wanna search the forum some more.