Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why its remove any same item name?

Asked by 5 years ago
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)
0
u might wanna use the operator ~=, just maybe. NickAtNick 163 — 5y
0
:remove is deprecated, i'm not sure if it still works, but try using :Destroy() instead just maybe starmaq 1290 — 5y
0
its still working dark_nineret -25 — 5y

Answer this question