local Storage = game:GetService("ServerStorage")
local Part = script.Parent
local Tool = game.ServerStorage.Items.Apple
local ClickDetector = Instance.new("ClickDetector", Part)
local ToolName = script.Parent.Name
ClickDetector.MouseClick:Connect(function(player)
if not player.Backpack:FindFirstChild("Pizza") then
Storage.Items[ToolName]:Clone().Parent = player.Backpack
end
if player.Backpack:FindFirstChild("Pizza").stacks.Value > 1 then
player.Backpack:FindFirstChild("Pizza").stacks.Value += 1
end
end)