Hello, the error i am getting is in the title
ItemNumber is a value i created in the localscript by doing:
local ItemNumber = 1
where the error occurs:
ItemNumber.Changed:connect(function(NewValue) end)
i don't know why this is happening it works fine with another value in another script can it be because it is a value created in the localscript ?
Thanks for any help
You need an int value then if you want rename it and reference it to your script. Here
local ItemNumber = game.Workspace.IntValue.Value ItemNumber.Changed:connect(function(NewValue) end)
But if that didn’t work try this one
local ItemNumber = game.Workspace.IntValue ItemNumber.Changed:connect(function(NewValue) If ItemNumber.Value == (What Ever Number You Want Here) then end end)
Please don’t forget to make this the answer if it was correct!
Thanks -GizmoProductions