Hello! I’m having troubles in this notification…
I’m firing events whenever someone dies or respawns to say something like this:
It works well but the thing is that it never loads the image! It keeps giving me this error:
Image “https://assetdelivery.roblox.com/v1/asset?id=5557821275” failed to load in “CoreGui.RobloxGui.NotificationFrame.Notification.NotificationImage.Image”: Request failed
This is the Script in ServerScriptService
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Notification = ReplicatedStorage:WaitForChild("Notification")
Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").Died:Connect(function()
Notification:FireAllClients(Player.Name, " has died!", "http://www.roblox.com/asset/?id=5557821275")
end)
end)
end)
Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(character)
Notification:FireAllClients(Player.Name, " is here!", "http://www.roblox.com/asset/?id=62311376")
end)
end)
And this is the LocalScript in StarterGui
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local StarterGui = game:GetService("StarterGui")
local Notification = ReplicatedStorage:WaitForChild("Notification")
Notification.OnClientEvent:Connect(function(Title, Description, Image)
StarterGui:SetCore("SendNotification", {
Title = Title;
Text = Description;
Icon = Image;
})
end)
I’ve asked some of my friends but I don’t know why it’s not working… I’ve tried doing it with other images but none work. Any help will be appreciated!