So this is a part of my function but for some reason script.Parent[key].Image = "rbxassetid://131999468534304" doesn't work even though the right key is getting printed with print(key) everything is how its suppose to be but it just doesn't work @-@
-# Attached an image of how my files are ordered
Not working code in Module HotbarScript
for key, value in pairs(SlotContent) do
if value == "FlashLight" then
print(key)
script.Parent[key].Image = "rbxassetid://131999468534304"
end```
that is not even an animation the id is a picture that im trying to apply to an Image Lable
** You are now Level 1! **


so when I setup the function a local script it started working now I just dont know how to call a local script function from a server script T.T