Hey,
I'm having trouble with Inserting an Image into a ImageLabel via. a LocalScript
Here is my Code:
local Item1 = script.Parent.Parent.List["1Item"]
game.ReplicatedStorage.FoodClickHandler.OnClientEvent:Connect(function(Food, ImageId)
Item1.Image = "http://www.roblox.com/asset/?id="..ImageId
end)
The ImageId is the following: 720401998
If the Local Script runs the Image changes to a transparent background!
I hope somebody can help me
EDIT There is a Error in the console:
Image "https://assetdelivery.roblox.com/v1/asset?id=720401998" failed to load in "Players.RedstonecraftHD.PlayerGui.FoodGui.List.1Item.Image": Request failed

5 comments
Send server script that fires the event
Already done...
SERVER CODE: local clickDetector = script.Parent.ClickDetector local RemoteEvent = game.ReplicatedStorage.FoodClickHandler clickDetector.MouseClick:Connect(function(player) local Food = script.Parent.Name local ImageId = game.ServerStorage.FoodIconIds:FindFirstChild(Food) RemoteEvent:FireClient(player, Food, ImageId.Value) end)
Not in a comment, there is an edit button for a reason
Sry