script

SellFish.OnServerEvent:Connect(function(player, FishPrice, FishRar)

local BackPackDesc = player.leaderstats:GetDescendants()

for index, descendant in pairs(BackPackDesc) do

if descendant.Name == "Gold" or descendant.Name == "Backpack" or "Total Fish Caught" then

return

end

descendant.Value = 0

end

end)

I am basically trying to set some values in the backpack except some to 0 but it doesn't do that.

3 comments

0

Any errors?

0

Nope.

0

If there are no errors, and the value isn't being changed, then most likely, the code isn't running. Put in something like print("test") in order to see if it's running.