events.TradeItem.OnServerEvent:Connect(function(p,n,T)local y=p.Character:FindFirstChildWhichIsA("\084\111\111\108")y:Destroy()if T then(tools[n.ActionText]:Clone()).Parent=p.Backpack end end)NPCs.Seller.UpperTorso.ProximityPrompt.Triggered:Connect(function(p)local n=p.Character if not n then return end local T=n:FindFirstChildWhichIsA("\084\111\111\108")if not T or not T:FindFirstChild("\072\097\110\100\108\101")then return end local y=T.Handle:FindFirstChild("\080\114\105\099\101")if y then T:Destroy()p.Wallet.Value+=y.Value end end)

events.TradeItem.OnServerEvent:Connect(function(plr, PP, final)
	local tool = plr.Character:FindFirstChildWhichIsA("Tool")
	tool:Destroy()
	if final then
		tools[PP.ActionText]:Clone().Parent = plr.Backpack
	end
end)

NPCs.Seller.UpperTorso.ProximityPrompt.Triggered:Connect(function(plr)
	local char = plr.Character
	if not char then return end
	local tool = char:FindFirstChildWhichIsA("Tool")
	if not tool or not tool:FindFirstChild("Handle") then return end
	local res = tool.Handle:FindFirstChild("Price")
	if res then
		tool:Destroy()
		plr.Wallet.Value += res.Value
	end
end)
