Decal not loading in

So I tried to make a core notification and the Decal id I put in the script doesn’t work.

The script:

Blockquote
function CreateNotification(Title, Text, Image)
local SetCore = StarterGui:SetCore(“SendNotification”,{
Title = Title,
Text = Text,
Icon = Image,
Duration = 5,
})
local Sound = Instance.new(“Sound”)
Sound.Parent = Player
Sound.SoundId = “rbxassetid://578970639”
Sound:Play()
wait(0.5)
Sound:Destroy()
end

What is your Image parameter being set to? In other words, what does your code look like where you’re calling CreateNotification? I’m just curious if the correct format is being used for that image.

Also, for code formatting, you can surround your code with three backticks. Three at the beginning, three at the end. e.g. ``` MyCode ```

This is what my code looks like when its calling ‘CreateNotification’

	Ui.Enabled = true
	CreateNotification("⚙️TEVIS⚙️", "Rank: Admin+","rbxassetid://5781290016")
else
	Ui:Destroy()
end

Also I joined a roblox server and it shows errors now:

Full code when it’s calling the function(I accidentally copied on a bit in the last one.)

if checkAdmin.Admins[Player.UserId]then
	Ui.Enabled = true
	CreateNotification("⚙️TEVIS⚙️", "Rank: Admin+","rbxassetid://5781290016")
else
	Ui:Destroy()
end

Update: I figured it out by doing some research.
I was using a decal asset when I was supposed to use an image asset,I simply converted it by going to the toolbox and copying the assetid.Thank to all who tried to help!
Solution: Image Failed to Load - Custom Loading UI

3 Likes

It’s so confusing that every decal has a linked image asset too. Not sure why they’re not just the same thing. Or at least it would be nice if decal IDs could be able to resolve image IDs in these contexts.

1 Like

Yeah,Btw this is off-topic nice youtube channel It inspires me with ideas :slight_smile:

1 Like