I'm making a game that needs to delete EVERYTHING in the player's backpack once the map has deleted, but it deletes everything except what the player is holding.. How do I fix this??
Here is the script:
for key = 1, #players do -- Increment the key variable every iteration until it reaches the amount of players
local value = players[key]; -- Create a reference to the player
value.Backpack:ClearAllChildren(); -- Clear their backpack
end

1 comment
btw before anyone asks, yes I used this script from someone else, but I can't figure out how to fix it