return function(J,F,P,T)if J=="\068\114\111\112"then local J=F local Z=P local k=T local q=J:FindFirstChild("\068\114\111\112")if not q then return end local H=k local V=Ore:Clone()V.Name=P V.Position=q.Attachment.WorldPosition V.Anchored=false V.Parent=workspace.Debris game.Debris:AddItem(V,10)local z=PriceUI:Clone()z.TextLabel.Text=tostring(numShorten(H))z.Parent=V V.Touched:Connect(function(J)if J.Name=="\083\101\108\108"then V:Destroy()print(Z," \104\097\100 \098\101\101\110 \115\111\108\100\033 - \067\076\073\069\078\084")elseif J.Name=="\085\112\103\114\097\100\101"then if not V:FindFirstChild(J.Parent.Name)then local F=Instance.new("\066\111\111\108\086\097\108\117\101")F.Name=J.Parent.Name F.Parent=V Replicate:FireServer("\085\112\103\114\097\100\101",V.Name,J.Parent)H=H*J.Parent.Data.Upgrade.Value z.TextLabel.Text=tostring(numShorten(H))end end end)end end

return function(Action, Variable2, Variable3, Variable4)
	if Action == "Drop" then
		local Dropper = Variable2
		local dropID = Variable3
		local dropValue = Variable4
		local dropPart = Dropper:FindFirstChild("Drop")
		if not dropPart then return end
		
		local currentValue = dropValue
		
		local drop = Ore:Clone()
		drop.Name = Variable3
		drop.Position = dropPart.Attachment.WorldPosition
		drop.Anchored = false
		drop.Parent = workspace.Debris
		game.Debris:AddItem(drop, 10)
		
		local billboardGui = PriceUI:Clone()
		billboardGui.TextLabel.Text = tostring(numShorten(currentValue))
		billboardGui.Parent = drop
		
		drop.Touched:Connect(function(Hit)
			if Hit.Name == "Sell" then
				drop:Destroy()
				print(dropID, " had been sold! - CLIENT")
			elseif Hit.Name == "Upgrade" then
				if not drop:FindFirstChild(Hit.Parent.Name) then
					local upgradeValue = Instance.new("BoolValue")
					upgradeValue.Name = Hit.Parent.Name
					upgradeValue.Parent = drop
					
					Replicate:FireServer("Upgrade", drop.Name, Hit.Parent)
					currentValue = currentValue * Hit.Parent.Data.Upgrade.Value
					billboardGui.TextLabel.Text = tostring(numShorten(currentValue))
				end
			end
		end)
	end
end
