Script Issue, easy to fix

Can you show me the :OnClientEvent connection?

its not necessery anymore i put the image on the same script

1 Like

I’m confused, why do you need the :FireClient then?

1 Like

for something else, i just need to image to work

Have you tried passing CarImage Instead of CarName?

I didn’t see you already got told this (ignore)

CarSpawnNotificationEvent.OnClientEvent:Connect(function(player, kId)
    CarSpawnNotificationFrame:TweenPosition(UDim2.new(0, 0, 0, 0), "InOut", "Quad", 0, true)
    CarSpawnNotificationFrame.Visible = true
    local NotificationImage = script.Parent.ImageSlot.ImageLabel
    NotificationImage.Image = "rbxassetid://" .. kId
end)

May i ask what is “kId” Here i assumed it was an ID but does it already use rbxassetid:// already? if not i think this might help.

The rbxassetid:// prefix is necessary to tell roblox that the image exists

still does not work if i add “rbxassetid://” … kId

i added print(kId) before the line that changes the imagelabel to the image id, the print works well, it tells me the right id, but then the image doesnt change and i dont get any errors

i put this:
for vName,kId in CarImageIds do
if vName == carName then
CarSpawnNotificationEvent:FireClient(player)
print(kId)

			NotificationImage.Image = kId

this print works, it tells me the right id, but then i doesnt change the image. Im not getting any errors, i dont know what to do now.