Hello fellow users, I have a game which the tools are instead parts welded to player hands because I do only one time per time (just like Piggy or Teddy) and when the round ends the person still have the item if they survived.
Heres the code I tried:
function deletePlayersItens()
for i,v in pairs(game.Players:GetChildren()) do
if v.Name == "Key" then
print("KABOOOM")
v:Destroy()
end
end
end
No errors in output, simply nothing. Please help, LyricalFrog3.

1 comment
Yes I want player list but in their character because my tool isn't a normal roblox tool its a part that when clicked it welds to the player hand and goes to the character so your script doesn't work