How 2 make so players wont be able to get the tool by walking on it if they already have one with the same name in their backpack

You got it. Nothing to add, but I gotta reach the necessary limit, and I did, hooray to me

local Game = game
local Workspace = workspace
local Players = Game:GetService("Players")

local function OnPlayerAdded(Player)
	local function OnCharacterAdded(Character)
		local function OnCharacterChildAdded(CharacterChild)
			if not (CharacterChild:IsA("BackpackItem")) then return end
			local Backpack = Player:FindFirstChildOfClass("Backpack")
			if not Backpack then return end
			for _, BackpackChild in ipairs(Backpack:GetChildren()) do
				if BackpackChild.Name == CharacterChild.Name then task.wait() CharacterChild.Parent = Workspace break end
			end
		end
		
		Character.ChildAdded:Connect(OnCharacterChildAdded)
	end
	
	Player.CharacterAdded:Connect(OnCharacterAdded)
end

Players.PlayerAdded:Connect(OnPlayerAdded)
2 Likes