I'm trying to make a broom that destroys after a certain amount of hits and I'm working on the destroy script. I figured it out but the tool removes but the player needs to reset before it's removed, really don't want to have to kill the player each time.. Here's what I have:
local broomHealth = script.Parent.broomhealth.broomhealth.Value
local plrBackpack = game.Players.LocalPlayer.Backpack
while true do
wait(10)
plrBackpack:FindFirstChild("Broom")
if broomHealth <= 0 then
plrBackpack.Broom:Destroy()
end
end
Thanks :)
