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