i made an inventory gui with string values in it, when i click one of the slots it changes the string value in it but it wont change anymore, so if i remove the item in the slot, the value stays the same and wont change.
this is a part of the script to make you understand what it should do...
function OnClicked()
local item = script.Parent.Parent.Parent.ItemName.Value
local itemC = script.Parent.Parent.Parent.ItemClass.Value
local itemA = script.Parent.Parent.Parent.ItemAmount.Value
if item == "None" then
item = "Test"
itemC = "Testing"
itemA = "1"
elseif item == "Test" then
item = "None"
itemC = "None"
itemA = "0"
end
end
thats just an example of what it looks..
ps: this is in a local script

1 comment
Thank you! it worked! :D