return function(f,G,m,q)if f=="\068\114\111\112"then local f=G local r=m local c=q local R=f:FindFirstChild("\068\114\111\112")if not R then return end local S=c local K=Ore:Clone()K.Name=m K.Position=R.Attachment.WorldPosition K.Anchored=false K.Parent=workspace.Debris game.Debris:AddItem(K,10)local n=PriceUI:Clone()n.TextLabel.Text=tostring(numShorten(S))n.Parent=K K.Touched:Connect(function(f)if f.Name=="\083\101\108\108"then K:Destroy()print(r," \104\097\100 \098\101\101\110 \115\111\108\100\033 - \067\076\073\069\078\084")elseif f.Name=="\085\112\103\114\097\100\101"then if not K:FindFirstChild(f.Parent.Name)then local G=Instance.new("\066\111\111\108\086\097\108\117\101")G.Name=f.Parent.Name G.Parent=K Replicate:FireServer("\085\112\103\114\097\100\101",K.Name,f.Parent)S=S*f.Parent.Data.Upgrade.Value n.TextLabel.Text=tostring(numShorten(S))end end end)end end
-- FUNCTIONS --
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
