I need to make a script that destroys all the gears in the player's backpack when executed. The script I have made up till now is:
local children = player.Backpack:GetChildren()
if (children) then
children:Destroy()
end
I get this error:
ServerScriptService.RemoteEventsScripts.Client To Server.RelatedToTeams.NeutralTeam:11: attempt to call method 'Destroy' (a nil value)

2 comments
when you say get children, it returns a table. You cannot destroy a table
Thanks for telling!