✓ Accepted answer
Tools, when equipped, are moved into the player's character.
Just check there, too (I'm unsure if deleting an equipped tool might have bad effects)
place = first_infected.StarterGear;
if place:FindFirstChild("Shrike") then
place.Shrike:Destroy()
end
place = first_infected.Character;
if place:FindFirstChild("Shrike") then
place.Shrike:Destroy()
end
This solution may fix the problem you saw:
place = first_infected.StarterGear;
if place:FindFirstChild("Shrike") then
place.Shrike:Destroy()
end
place = first_infected.Character;
if place:FindFirstChild("Shrike") then
local tool = place.Shrike;
tool.Enabled = false;
tool:Destroy()
end
1 comment
I haven't tested it, but I edited my answer to include a different solution that may solve the problem?