I'm making a game and i wan tall the guys when they died they loose there items in the backpack.
ClearAllChildren()
and
game:GetService('Players').PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character:WaitForChild("Humanoid").Died:connect(function() print(player.Name .. " has died!") end) end) end)
Hi. I made this script for you.
Script:
Players=Game:GetService("Players") Players.PlayerAdded:connect(function(Player) Player.CharacterAddedd:connect(function(Character) Humanoid = Character:FindFirstChild("Humanoid") Backpack = Player:FindFirstChild("Backpack") Humanoid.Died:connect(function() Backpack:Destroy() end) end) end)
I hope it works for you. Enjoy.