How can I delete tools with different names but with the same initials?

How can I remove tools or objects that have a different name but the same initials from the player’s inventory or from the character?
my code here:
but this don’t works

local player = game.Players.LocalPlayer
local uis = game:GetService("UserInputService")

local delete ={
	"[SCP]"
}

local deb = false

uis.InputBegan:Connect(function(key)
	if key.KeyCode == Enum.KeyCode.R and deb == false then
		deb = true
	end
end)

for i, v in pairs(player.Backpack:GetChildren()) do
	if v.Name == "[SCP]" and deb == true then
		v:Destroy()
	end
end

An Example

local SCP_Prefix = string.find(v.Name,'[SCP]')
	if SCP_Prefix and deb == true then
v:Destroy()
end 

or just

if string.find(v.Name,delete[1]) and deb == true then --// u can make a loop for delete if u want (placed within backpack loop)
v:Destroy()
end 
1 Like

thanks you very much man it worked