script.Sell.OnServerEvent:connect(function(plr,v,i)
plr.Data.Money.Value = plr.Data.Money.Value + v.Info.Sell.Value
if v.Info.Number.Value > 1 then
v.Info.Number.Value = v.Info.Number.Value -1
end
if v.Info.Number.Value == 1 then
v:remove(i)
end end)
COMMUNITY QUESTION
why its remove any same item name?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
u might wanna use the operator ~=, just maybe.
:remove is deprecated, i'm not sure if it still works, but try using :Destroy() instead just maybe
its still working