I am trying to edit the default slingshot on roblox to delete itself if the humanoid it is hitting is at 0 health, yet it is not working. Does anyone know why? (I am a fairly new scripter, sorry)
[I am getting error messages like "attempted to index nil with Destroy(), and infinite yeilds on Slingshot]
What I am trying to accomplish is a one off kill tool, so you can only kill one person with the tool then it gets deleted
It automatically gets deleted when a player dies. You don’t need to do it manually.
Edit: Just wanted to let you guys know. If the player has the tool un-equipped it will be parented to the player’s Backpack. Else if it is equipped it will be parented to the character.
That’s what we’re saying. When the player that is taking damage dies, the tool will get deleted automatically from that player’s character/inventory.
He is correct. Whoever is holding the tool doesn’t matter. Just let the player die. It will automatically destroy the tool itself if the player dies.