if ItemFromStorage.ItemInfo.Category.Value == "General" then
	-- general stuff
elseif ItemFromStorage.ItemInfo.Category.Value == "Ammo" then
	-- ammo stuff
	
	
	
	elseif ItemFromStorage.ItemInfo.Category.Value == "Apparel" then
	-- apparel stuff
	
			
	elseif ItemFromStorage.ItemInfo.Category.Value == "Weapons" then
	-- weapon stuff
		end

Thats the script ^

For some reason it just ignores everything, Anyone got any ideas?

4 comments

0

ItemFromStorage = Folder, ItemInfo = An int value, Category = String value

1

Maybe the value does not equal General Ammo Apparel or wepons

0

It does, I printed the value and it was equal to 'Weapons'