I am trying to make inventory so once player gets value 1 he gets an item but the image dosen't show up once i have i item
local Slot1 = script.Parent.Slot1
local Slot2 = script.Parent.Slot2
while true do
wait(1)
if Slot1.Value == 1 then
Slot1.Image = ("http://www.roblox.com/asset/?id=183584653")
else
Slot1.Image = ("http://www.roblox.com/asset/?id=1884857885")
end
if Slot2.Value == 1 then
Slot2.Image = ("http://www.roblox.com/asset/?id=183584653")
else
Slot2.Image = ("http://www.roblox.com/asset/?id=1884857885")
end
wait(1)
end

1 comment
Line 3 & 4 you shouldn't put =