I am making a GUI that when you press a button it will Remove all the weapons in your backpack. Give you a new set of tools. And then reset you
I have made a GUI button give me a tool when I press it but I still need it to make it remove the old tools and kill me.
The script to give me my tools local p = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect (function() local tool = script.Parent.(Tool Name):clone() tool.Parent = p.Backpack end)

1 comment
What are you exactly trying to do? By killing the player you already lose all tools. Plus, you might want to use a remoteevent to get the tool and clear your backpack, so that it's seen by the server and not just the client.