Hello. So I'm currently trying to make an API that does a variety of things when a player kills another. I'm trying to add a line that will print out the name of a certain player's currently equipped tool.
So far I have this, I can't figure out how to find the name of the tool
local baddy = Humanoid.creator.Value
local Weapon = baddy:WaitForChild("Backpack")
Thank you all for the help.

5 comments
Would this only work a for a local script inside the player?
no, this would work in a normal script and local, you have defined "Weapon" as the players backpack so you could put this script almost anywhere, I don't know what you are planning but I would put it in server script service because that is where most scripts go.
this gets the object, not the name and if the weapon specified doesnt exist it will error
if you don't want an error do, if Weapon:WaitForChild("Name") then --Do your script else end
Thank you, I was looking for a script to get a non specific weapon though