#so i made this script for a store and i want to check if there is already a tool taking up a backpack slot
script so far:
local player = game.Players.LocalPlayer
points = player.leaderstats.Coins
local product = ".300 Carbine"
local prodlocation = game.ServerStorage.NewWeaponStache.Carbines -- remember to change this last part later
-----------------------------------------------------------------------------------------
function activate()
if points >= script.Parent.Parent.Price.Text then
prodlocation:Clone().Parent = player.Backpack
prodlocation:Clone().Parent = player.StarterGear
end
end
script.Parent.MouseButton1Click:Connect(activate)
but when the weapon gets put into the players inventory, how do i check before that (overexaggeration) so the player can freely switch their weapons without overload of like 58+ weapons

1 comment
if player.Backpack:FindFirstChild(product) then