So i'm trying to make an in-game power-point system where the user clicks a part, and enters the ID of a decal and the decal will show up on the image label/ surface GUI.
heres the script so far
script.Parent.FocusLost:Connect( --in a text box so the player can enter the decal ID
function(enterPressed)
if enterPressed then
script.Parent.Value.Value = script.Parent.Text
script.Parent.Parent.Visible = false
script.Parent.Text = "Text Here..." --ignore everything above this
local part = game.Workspace.ShowPart
local value = script.Parent.Value.Value
part.SurfaceGui.ImageLabel.Image = ("http://www.roblox.com/asset/?id="..value)
end
end
)`
error message:
"Image "https://assetdelivery.roblox.com/v1/asset?id(image i want)" failed to load in "Workspace.ShowPart.SurfaceGui.ImageLabel.Image": Request failed
I tried using the rbxasset:// thingy, everything else system wise is working. sorry for sloppy, first post new to this website
i am not looking for criticism with my code, I've been scripting for a few months and im pretty proud of how far i've come

5 comments
by criticism i mean like people saying to indent, and how i've written some parts of the code, suggestions are fine thanks if you reply!
:connect is deprecated, use :Connect
thanks
try using "rbxassetid://" rather then "http://www.roblox.com/asset/?id=" or "rbxasset://"
as stated, i have