-- This default upgrader is going to turn whatever brick touches it, into a sword, at least the mesh part.
--------------------


script.Parent.Upgrader.Touched:connect(function(Part)
	if Part:FindFirstChild("Cash") then
		Part.Cash.Value = Part.Cash.Value * 2 -- Try not to use * because if the game lags, parts may be worth millions each due to debounce
		if meshUpgrade == true then
			
			for i,v in pairs(Part:GetChildren())do
				if v:IsA("SpecialMesh") then
					v:remove()
				end
			end
		
			local m = Instance.new("SpecialMesh",Part)
			m.MeshId = meshID
			m.TextureId = textureID
		end
	end
end)
