Can't destroy tool

Hello, I am making a minigame, and a part of it, involves Destorying the player’s tool at the end of the round…
To do so, I’m using this script…

if player.Backpack:FindFirstChild('Sword') then
				player.Backpack.Sword:Destory()
			end
			
			if character:FindFirstChild('Sword') then
				character.Sword:Destory()
			end

I can’t understand why I’m getting this error:

Error

Thanks for help!

2 Likes

What about

if player.Backpack:FindFirstChild(‘Sword’) ~= nil then
player.Backpack:WaitForChild(“Sword”):Destory()
end

if character:FindFirstChild(‘Sword’) ~= nil then
character:WaitForChild(“Sword”):Destory()
end

You misspelt Destroy here :+1:

Edit: Actually in both of the lines

3 Likes

Or perhaps

if player.Backpack:WaitForChild(“Sword”) ~= nil then
player.Backpack:WaitForChild(“Sword”):Destroy()
elseif player.Character:WaitForChild(“Sword”) ~= nil then
player.Character:WaitForChild(“Sword”):Destroy()
end

Yep… I was an idiot…